Image correction method and device, electronic equipment, storage medium and product
By using an image correction model matching the equipment during the image acquisition process of item page lists for image correction processing, the problem of distortion, blur or deformation of image acquisition is solved, and the image clarity and quality is improved, which facilitates the extraction and analysis of page list information.
Patent Information
- Application Number
- CN202411615391.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-02-28
AI Technical Summary
In the prior art, images are easily distorted, blurred or deformed during the image acquisition of item page lists, resulting in difficulty in subsequent analysis.
When the target position has a pending task, the image acquisition process is performed on the to-recognition page, and the image correction model matching the image acquisition device is used to perform image denoising, sharpening and color correction processing, to generate the corrected image to be confirmed, and then it is determined in the control system that it meets the preset requirements and save it as the target correction image.
It effectively solves the problems of image distortion, blur or deformation during image acquisition, improves image clarity and quality, and facilitates the extraction of page list information and subsequent image analysis.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to an image correction method, device, electronic equipment, storage medium and product. Background Art
[0002] In order to ensure the safety of item collection and delivery, images of the waybills carried by the items are usually captured and processed in the item sorting area or the item receiving area.
[0003] At present, in the prior art, the image acquisition of the item bill is mainly performed by scanning the bill with a barcode scanner, and the acquired image is stored. However, the image acquisition in the above manner often results in image distortion, blur or deformation, which is not conducive to the subsequent image analysis. Summary of the invention
[0004] The present invention provides an image correction method, device, electronic device, storage medium and product, which realize image correction processing of a waybill to be identified and facilitate subsequent extraction of waybill information.
[0005] According to one aspect of the present invention, there is provided an image correction method, the method comprising:
[0006] When it is detected that there is a task to be processed at the target position, an image of the face sheet to be identified attached to the task to be processed is collected and processed to obtain an image to be processed;
[0007] Performing correction processing on the image to be processed based on the image correction model to obtain a corrected image to be confirmed, wherein the correction processing includes at least one of image denoising processing, image sharpening processing and color correction processing, and the image correction model is a model that matches the device type of the image acquisition device that acquires the image to be processed;
[0008] The corrected image to be confirmed is sent to the control system so that the control system will feedback the image confirmation instruction when it determines that the corrected image to be confirmed meets the preset requirements, and save the corrected image to be confirmed as the target corrected image in the control system to determine the waybill information of the waybill to be identified based on the target corrected image.
[0009] According to another aspect of the present invention, there is provided an image correction device, the device comprising:
[0010] An image acquisition module is used to acquire an image of the to-be-processed task attached to the to-be-processed task and obtain the to-be-processed image when detecting that there is a to-be-processed task at the target position;
[0011] An image correction module, used for performing correction processing on the image to be processed based on the image correction model to obtain a corrected image to be confirmed, wherein the correction processing includes at least one of image denoising processing, image sharpening processing and color correction processing, and the image correction model is a model that matches the device type of the image acquisition device that acquires the image to be processed;
[0012] The target correction image determination module is used to send the correction image to be confirmed to the control system, so that the control system can feedback the image determination instruction when determining that the correction image to be confirmed meets the preset requirements, and save the correction image to be confirmed as the target correction image in the control system, so as to determine the waybill information of the waybill to be identified based on the target correction image.
[0013] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by at least one processor so that the at least one processor can execute the image correction method of any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the image correction method of any embodiment of the present invention when executed by a processor.
[0018] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein the computer program implements the image correction method according to any embodiment of the present invention when executed by a processor.
[0019] The technical solution of the embodiment of the present invention is to perform image acquisition and processing on the face sheet to be identified attached to the task to be processed when it is detected that there is a task to be processed at the target position, so as to obtain the image to be processed. The image to be processed is corrected by the image correction model to obtain the corrected image to be confirmed. The corrected image to be confirmed is sent to the control system, so that the control system feeds back an image determination instruction when determining that the corrected image to be confirmed meets the preset requirements, and saves the corrected image to be confirmed as the target corrected image in the control system, so as to determine the face sheet information of the face sheet to be identified based on the target corrected image. The present invention realizes the image acquisition and image correction of the face sheet to be identified for the task to be processed, solves the problem that the image collected in the prior art is distorted, blurred or deformed, and facilitates the subsequent extraction of face sheet information and further image analysis of the target corrected image.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of an image correction method provided by an embodiment of the present invention;
[0023] Figure 2 is an example diagram of a device for implementing an image correction method provided by an embodiment of the present invention;
[0024] Figure 3 is a flow chart of an image correction method provided by an embodiment of the present invention;
[0025] Figure 4 is a structural schematic diagram of an image correction device provided by an embodiment of the present invention;
[0026] Figure 5 It is a schematic diagram of the structure of an electronic device for implementing the image correction method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] 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. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Embodiment 1
[0030] Figure 1 This is a flowchart of an image correction method provided by the first embodiment of the present invention. This embodiment is applicable to the case where the image of the face sheet to be identified is corrected. The method can be executed by an image correction device. The image correction device can be implemented in the form of hardware and / or software. The image correction device can be configured in an electronic device such as a mobile phone, a computer or a server. Figure 1 As shown, the method includes:
[0031] S110. When it is detected that there is a task to be processed at the target position, image acquisition and processing are performed on the face sheet to be identified attached to the task to be processed to obtain an image to be processed.
[0032] The target position may be a pre-set position for image acquisition of the task to be processed. Optionally, in the scenario of item transportation, the item that currently needs image acquisition can be used as the task to be processed. The face sheet to be identified is the identification information attached to the task to be processed. For example, if the task to be processed is an express delivery to be imaged, the face sheet to be identified may include information such as a barcode, the delivery information of the express delivery, and the name of the company transporting the express delivery. The image to be processed may be an image obtained after image acquisition of the face sheet to be identified.
[0033] Specifically, an image acquisition device may be arranged at the corresponding position. When it is detected that there is a task to be processed at the target position, the image acquisition device performs image acquisition processing on the to-be-identified face sheet attached to the task to be processed to obtain the image to be processed.
[0034] For example, see Figure 2 , Figure 2 An example diagram of a device for implementing the image correction method is shown below. Figure 2The weighing scanner includes an image acquisition device 21, a control system 22 and a weighing platform 23. The image acquisition device 21 is connected to the control system 22 for communication. The image acquisition device 21 is used to acquire images of the to-be-identified bill attached to the task to be processed on the weighing platform 23. For example, the image acquisition device can be an industrial CMOS camera. The weighing platform 23 is used to detect whether there is a task to be processed placed thereon.
[0035] The task to be processed is an express delivery. When the weighing platform 23 detects that an express delivery is placed on it, the weighing data corresponding to the express delivery can be determined and sent to the control system 22. After receiving the weighing data, the control system generates an image acquisition instruction based on the weighing data and sends it to the image acquisition device 21. In response to the image acquisition instruction, the image acquisition device 21 performs image acquisition processing on the face sheet to be identified attached to the task to be processed to obtain the image to be processed.
[0036] In an embodiment of the present invention, before the image acquisition device acquires the image of the face sheet to be identified and performs image correction on the image to be processed, it is necessary to establish communication between the image acquisition device and the control system. The specific method may be: upon receiving the parameter acquisition request sent by the control system, the device identification information and device driving parameters of the image acquisition device are sent to the control system to establish communication with the control system; the device type of the image acquisition device is sent to the control system so that the control system can feedback an image correction model that matches the device type.
[0037] Among them, the device identification information can be an identifier used to uniquely identify the image acquisition device. For example, the image acquisition device can be a chip identifier of the image acquisition device, that is, a chip ID. The device driver parameters can be understood as kernel driver parameters used to drive the image acquisition device. The control system can be a system used to establish communication with the image acquisition device and control the image acquisition device to perform image acquisition. Multiple image correction models can also be stored in the control system. Therefore, the control system can perform image correction, and can also send the image correction model to the corresponding device to enable it to perform image correction.
[0038] The device type may be a type corresponding to an image acquisition device. For example, the device type may be a sensor type used by the image acquisition device to acquire images. The image correction model is a pre-trained model used to correct the clarity, color distribution, etc. of the image to be processed.
[0039] Specifically, before the image acquisition device acquires the image to be processed, it is necessary to establish communication between the image acquisition device and the control system. That is, when the parameter acquisition request sent by the control system is received through the preset communication interface, the device identification information and device driver parameters of the image acquisition device are sent to the control system, so that the control system updates its configuration parameters according to the device identification information and device driver parameters. Based on this, the communication connection with the control system is realized. The device type of the image acquisition device is sent to the control system, so that the control system feeds back an image correction model that matches the device type. Based on this, the collected image to be processed can be corrected by the received image correction model.
[0040] Exemplarily, in combination with the above example, the device identification information is a chip ID, the device driver parameter is a kernel driver code of an image acquisition device, and the device type is an image sensor type of the image acquisition device as an example for explanation.
[0041] When the image acquisition device receives a chip ID acquisition request from the control system through a preset communication interface, the chip ID of the image acquisition device is sent to the control system to establish communication with the control system. The kernel driver code of the image acquisition device is sent to the control system so that the control system performs configuration processing based on the received kernel driver code. For example, if the kernel driver code is a Linux kernel driver source code, the control system can modify the corresponding configuration file when performing configuration processing so that the configuration file includes the kernel driver code of the image acquisition device.
[0042] In order to facilitate the control system to send a more accurate image correction model to the image acquisition device, the image acquisition device can send its corresponding image sensor type to the control system, so that the control system can feedback the image correction model that matches the image sensor type according to the received image sensor type. The image acquisition device stores the received image correction model in the local space, so that when receiving an image acquisition instruction or detecting that there is a task to be processed at the target position, the image to be processed is corrected according to the image correction model.
[0043] Optionally, a device gain parameter and a device exposure parameter that are adapted to the device type and are sent by the control system are received, and configuration parameters of the image acquisition device are updated based on the device gain parameter and the device exposure parameter.
[0044] The device gain parameter can be used to adjust the image brightness of the image to be processed, and the device exposure parameter can be used to adjust the exposure time of the image to be processed.
[0045] Specifically, in order to enable the image acquisition device to obtain better image acquisition effects during the image acquisition process, it is possible to receive device gain parameters and device exposure parameters that match the device type of the image acquisition device issued by the control system, and update the configuration parameters of the image acquisition device according to the device gain parameters and the device exposure parameters, so as to capture the image to be processed of the face sheet to be identified through the updated configuration parameters.
[0046] Exemplarily, in combination with the above examples, the image acquisition device is an industrial CMOS camera as an example for explanation. The device gain parameter may be a camera gain parameter, and the device exposure parameter may be a camera exposure parameter. In order to enable the industrial CMOS camera to obtain a better image acquisition effect during the image acquisition process, the control system may determine the camera gain parameter and camera exposure parameter that match the industrial CMOS camera according to the received image sensor type, chip ID and other information and send them to the image acquisition device. After receiving the camera gain parameter and camera exposure parameter sent by the control system, the image acquisition device can quickly perform automatic configuration of the camera and update the configuration parameters of the industrial CMOS camera. It should be noted that the above parameter configuration process is automatic configuration.
[0047] Optionally, the method also includes: sending the device address, clock source and power domain of the image acquisition device to the control system, so that the control system establishes a device information table corresponding to the image acquisition device according to the received device address, clock source and power domain.
[0048] Exemplarily, in combination with the above example, in order to enable the control system to accurately manage the industrial CMOS camera, the device address, clock source and power domain of the industrial CMOS camera can be sent to the control system, so that the control system determines the device information table corresponding to the current industrial CMOS camera according to the device address, clock source and power domain of the industrial CMOS camera, and adds it to the specified file in the control system. For example, the specified file can be a device tree file.
[0049] S120. Perform correction processing on the image to be processed based on the image correction model to obtain a corrected image to be confirmed, wherein the correction processing includes at least one of image denoising processing, image sharpening processing and color correction processing, and the image correction model is a model that matches the device type of the image acquisition device that acquires the image to be processed.
[0050] The corrected image to be confirmed may be an image obtained after the correction processing of the image to be processed. The correction processing includes at least one of image denoising processing, image sharpening processing and color correction processing. Image denoising processing can be used to remove noise in the image to be processed. Image sharpening processing can be used to compensate for the contour of the image to be processed and enhance the edge of the image to be processed to enhance the clarity of the image to be processed. Color correction processing can be used to adjust the color distribution of the image to be processed and repair the color cast problem of the image to be processed.
[0051] Specifically, the image acquisition device performs at least one of image denoising, image sharpening and color correction on the image to be processed through the received image correction model to obtain a corrected image to be confirmed.
[0052] Exemplarily, in combination with the above example, after the image acquisition device acquires the image to be processed of the face sheet to be identified on the pending task placed on the weighing table, it can correct the image to be processed according to the image correction model it receives to obtain the corrected image to be confirmed.
[0053] S130, sending the corrected image to be confirmed to the control system, so that the control system feeds back an image confirmation instruction when determining that the corrected image to be confirmed meets the preset requirements, and saves the corrected image to be confirmed as a target corrected image in the control system, so as to determine the waybill information of the waybill to be identified based on the target corrected image.
[0054] Among them, the preset requirements may be pre-set requirements that the corrected image needs to meet. For example, the preset requirements may include that the image clarity and image color distribution of the corrected image to be confirmed need to meet specific values or specific conditions. The image determination instruction may be an instruction issued by the control system to determine whether the corrected image to be confirmed is qualified. The target corrected image may be a corrected image to be confirmed that meets the preset requirements. The bill of lading information may be identification information in the bill of lading to be identified. For example, taking the task to be processed as express delivery as an example, the bill of lading information may include the collection and delivery information, barcode, and delivery company of the express delivery.
[0055] Specifically, the corrected image to be confirmed is sent to the control system so that the control system determines whether the corrected image to be confirmed is qualified. If the corrected image to be confirmed meets the preset requirements, the corrected image to be confirmed is qualified, and an image confirmation instruction is fed back. The corrected image to be confirmed is saved in the control system as a target corrected image, so as to determine the face sheet information of the face sheet to be identified based on the target corrected image. Accordingly, after receiving the image confirmation instruction, the image acquisition device can save the corrected image to be confirmed as a target corrected image in its local storage space.
[0056] Exemplarily, in combination with the above example, the corrected image to be confirmed is sent to the control system and displayed on the display device corresponding to the control system, so that the user can view the corrected image to be confirmed. If the user is satisfied with the corrected image to be confirmed and triggers the corresponding "agree to save" control, the control system generates an image confirmation instruction based on the trigger operation and sends it to the image acquisition device. Alternatively, the control system judges the received corrected image to be confirmed to determine whether the corrected image to be confirmed meets the preset requirements, and if it meets the preset requirements, the image confirmation instruction is fed back.
[0057] When the image acquisition device receives the image confirmation instruction issued by the control system, it saves the correction image to be confirmed as the target correction image in the storage space of the image acquisition device. It should be noted that the storage area of the correction image to be confirmed is different from that of the target correction image. For example, the correction image to be confirmed and the target correction image can be stored in different folders.
[0058] The technical solution of this embodiment is to perform image acquisition and processing on the face sheet to be identified attached to the task to be processed when it is detected that there is a task to be processed at the target position, so as to obtain the image to be processed. The image to be processed is corrected by the image correction model to obtain the corrected image to be confirmed. The corrected image to be confirmed is sent to the control system, so that the control system feeds back the image determination instruction when it determines that the corrected image to be confirmed meets the preset requirements, and saves the corrected image to be confirmed as the target corrected image in the control system, so as to determine the face sheet information of the face sheet to be identified based on the target corrected image. The present invention realizes the image acquisition and image correction of the face sheet to be identified for the task to be processed, solves the problem that the image collected in the prior art is distorted, blurred or deformed, and facilitates the subsequent extraction of face sheet information and further image analysis of the target corrected image.
[0059] Embodiment 2
[0060] Figure 3 is a flowchart of an image correction method provided by Embodiment 2 of the present invention. This embodiment is a preferred embodiment of the above embodiment. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or corresponding to the above embodiment are not repeated here. Figure 3 As shown, the method includes:
[0061] S210: When it is detected that there is a task to be processed at the target position, image acquisition and processing are performed on the face sheet to be identified attached to the task to be processed to obtain an image to be processed.
[0062] S220 , performing image denoising on the image to be processed based on the image correction model to obtain a denoised image.
[0063] The denoised image may be an image obtained by removing noise from the image to be processed. The noise of the image to be processed may be understood as unnecessary or redundant interference information existing in the image to be processed.
[0064] Specifically, during the image acquisition process of the image acquisition device for the face sheet to be identified, the image to be processed is usually affected by the material properties of the sensor and the electronic components in the image acquisition device, as well as the acquisition environment, resulting in noise in the image to be processed. In this case, the image to be processed can be denoised by at least one of the denoising methods such as a filter based on the spatial domain, a wavelet threshold denoising based on the wavelet domain, an image denoising based on a partial differential equation (PDE), and a total variation (TV) image denoising to obtain a denoised image.
[0065] S230: Perform image sharpening processing on the denoised image to obtain a sharpened image.
[0066] The sharpened image is the denoised image after sharpening.
[0067] Specifically, in order to enhance the detail edges and contours of the denoised image, the denoised image may be sharpened by at least one of first-order differential sharpening and second-order differential sharpening to obtain a sharpened image.
[0068] S240: Perform color correction processing on the color distribution of the sharpened image to obtain a corrected image to be confirmed.
[0069] Among them, the color correction processing can be used to adjust the color distribution and color balance of the sharpened image so that the adjusted image is more consistent with the colors in the real scene. The image obtained after the sharpened image is color corrected is used as the corrected image to be confirmed.
[0070] Specifically, at least one of the color correction methods such as polynomial regression, back propagation network and support vector regression can be used to solve the problems of color cast, color temperature and contrast in the sharpened image to obtain a corrected image to be confirmed.
[0071] S250, sending the corrected image to be confirmed to the control system, so that the control system feeds back an image confirmation instruction when determining that the corrected image to be confirmed meets the preset requirements, and saves the corrected image to be confirmed as a target corrected image in the control system, so as to determine the waybill information of the waybill to be identified based on the target corrected image.
[0072] S260: If no image confirmation instruction is received from the control system within the preset time, the image to be processed is sent to the control system so that the control system performs image correction processing on the image to be processed to obtain a target corrected image.
[0073] The preset duration may be a preset time length. For example, the preset duration may be 30 seconds or 40 seconds. Optionally, the preset duration may be the duration after the corrected image to be confirmed is sent, or the duration after the control system is determined to have received the corrected image to be confirmed. The image confirmation instruction may be an instruction for informing the image acquisition device that the corrected image to be confirmed meets preset requirements.
[0074] Specifically, if the image acquisition device does not receive an image confirmation instruction issued by the control system within a preset time, the image to be processed is sent to the control system, and the control system corrects the image to be processed according to at least one image correction model stored therein to obtain a target corrected image.
[0075] Exemplarily, if the image acquisition device does not receive an image confirmation instruction within 30 seconds, the image to be processed is sent to the control system, and the control system performs correction processing on the image to be processed to obtain a target corrected image.
[0076] Optionally, the control system may correct the image to be processed in the following manner: sending the image to be processed to the control system so that the control system matches at least one image correction model with the image to be processed to obtain model matching properties corresponding to each image correction model; based on the model matching properties, determining a target image correction model from at least one image correction model, and performing correction processing on the image to be processed based on the target image correction model to obtain a target corrected image.
[0077] The model matching attribute can be used to characterize the matching degree between the image correction model and the image to be processed. The target image correction model can be the image correction model with the highest model matching attribute with the image to be processed.
[0078] Specifically, the image to be processed is sent to the control system so that the control system matches the image type of the image to be processed according to the image type that can be processed by at least one image correction model stored therein, and determines the model matching attribute corresponding to each image correction model. The image correction model with the highest model matching attribute is used as the target image correction model, and the image to be processed is subjected to image correction processing by the target image correction model to obtain a target corrected image.
[0079] The technical solution of this embodiment is that when it is detected that there is a task to be processed at the target position, the face sheet to be identified attached to the task to be processed is subjected to image acquisition processing to obtain the image to be processed. The image to be processed is subjected to image denoising processing, image sharpening processing and color correction processing through the image correction model to obtain the corrected image to be confirmed. The corrected image to be confirmed is sent to the control system so that the control system can feedback the image determination instruction when determining that the corrected image to be confirmed meets the preset requirements, and the corrected image to be confirmed is saved in the control system as the target corrected image to determine the face sheet information of the face sheet to be identified based on the target corrected image. If the image determination instruction fed back by the control system is not received within the preset time length, the image to be processed is sent to the control system so that the control system can perform image correction processing on the image to be processed to obtain the target corrected image. Based on this, the accuracy of the target corrected image and the user satisfaction are guaranteed. The present invention realizes the image acquisition and image correction of the face sheet to be identified for the task to be processed, solves the problem that the image collected in the prior art is distorted, blurred or deformed, and facilitates the subsequent extraction of face sheet information and further image analysis of the target corrected image.
[0080] Embodiment 3
[0081] Figure 4 Schematic diagram of the structure of an image correction device provided by Embodiment 3 of the present invention. Figure 4 As shown, the device includes: an image acquisition module 310, an image correction module 320 and a target correction image determination module 330.
[0082] The image acquisition module 310 is used to perform image acquisition and processing on the face sheet to be identified attached to the task to be processed when it is detected that there is a task to be processed at the target position, so as to obtain the image to be processed; the image correction module 320 is used to perform correction processing on the image to be processed based on the image correction model to obtain the corrected image to be confirmed, wherein the correction processing includes at least one of image denoising processing, image sharpening processing and color correction processing, and the image correction model is a model that matches the device type of the image acquisition device that collects the image to be processed; the target corrected image determination module 330 is used to send the corrected image to be confirmed to the control system, so that the control system feeds back an image determination instruction when determining that the corrected image to be confirmed meets the preset requirements, and saves the corrected image to be confirmed as the target corrected image in the control system, so as to determine the face sheet information of the face sheet to be identified based on the target corrected image.
[0083] The technical solution of this embodiment is to perform image acquisition and processing on the face sheet to be identified attached to the task to be processed when it is detected that there is a task to be processed at the target position, so as to obtain the image to be processed. The image to be processed is corrected by the image correction model to obtain the corrected image to be confirmed. The corrected image to be confirmed is sent to the control system, so that the control system feeds back the image determination instruction when it determines that the corrected image to be confirmed meets the preset requirements, and saves the corrected image to be confirmed as the target corrected image in the control system, so as to determine the face sheet information of the face sheet to be identified based on the target corrected image. The present invention realizes the image acquisition and image correction of the face sheet to be identified for the task to be processed, solves the problem that the image collected in the prior art is distorted, blurred or deformed, and facilitates the subsequent extraction of face sheet information and further image analysis of the target corrected image.
[0084] On the basis of the above embodiment, optionally, the device also includes: a system correction module, which is used to send the image to be processed to the control system if no image confirmation instruction is received from the control system within a preset time period, so that the control system performs image correction processing on the image to be processed to obtain a target corrected image.
[0085] Optionally, the device also includes a model feedback module, which includes: a communication establishment unit, which is used to send the device identification information and device driving parameters of the image acquisition device to the control system when a parameter acquisition request is received from the control system, so as to establish communication with the control system; a model feedback unit, which is used to send the device type of the image acquisition device to the control system, so that the control system can feedback an image correction model that matches the device type.
[0086] Optionally, the apparatus further includes: a parameter updating module, configured to receive device gain parameters and device exposure parameters adapted to the device type and sent by the control system, and to update configuration parameters of the image acquisition device based on the device gain parameters and the device exposure parameters.
[0087] Optionally, an image correction module is used to perform image denoising on the image to be processed based on the image correction model to obtain a denoised image; perform image sharpening on the denoised image to obtain a sharpened image; and perform color correction on the color distribution of the sharpened image to obtain a corrected image to be confirmed.
[0088] Optionally, a system correction module is used to send the image to be processed to the control system so that the control system matches at least one image correction model with the image to be processed to obtain model matching properties corresponding to each image correction model; based on the model matching properties, a target image correction model is determined from at least one image correction model, and correction processing is performed on the image to be processed based on the target image correction model to obtain a target corrected image.
[0089] The image correction device provided in the embodiment of the present invention can execute the image correction method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0090] Embodiment 4
[0091] Figure 5 1 is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0092] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0093] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0094] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as an image correction method.
[0095] In some embodiments, the image correction method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the image correction method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the image correction method in any other appropriate manner (e.g., by means of firmware).
[0096] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0097] The computer program for implementing the image correction method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0098] Embodiment 5
[0099] Embodiment 5 of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to execute an image correction method, the method comprising:
[0100] When it is detected that there is a task to be processed at the target position, image acquisition processing is performed on the face sheet to be identified attached to the task to be processed to obtain the image to be processed; correction processing is performed on the image to be processed based on the image correction model to obtain the corrected image to be confirmed, wherein the correction processing includes at least one of image denoising processing, image sharpening processing and color correction processing, and the image correction model is a model that matches the device type of the image acquisition device that collects the image to be processed; the corrected image to be confirmed is sent to the control system, so that the control system feeds back an image confirmation instruction when determining that the corrected image to be confirmed meets the preset requirements, and the corrected image to be confirmed is saved in the control system as the target corrected image, so as to determine the face sheet information of the face sheet to be identified based on the target corrected image.
[0101] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0102] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0103] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0104] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0105] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0106] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. An image correction method, characterized in that: include: When it is detected that there is a task to be processed at the target position, an image acquisition process is performed on the face sheet to be identified attached to the task to be processed to obtain an image to be processed; Performing correction processing on the image to be processed based on the image correction model to obtain a corrected image to be confirmed, wherein the correction processing includes at least one of image denoising processing, image sharpening processing and color correction processing, and the image correction model is a model that matches the device type of the image acquisition device that acquires the image to be processed; The corrected image to be confirmed is sent to the control system so that the control system feeds back an image confirmation instruction when determining that the corrected image to be confirmed meets the preset requirements, and saves the corrected image to be confirmed as a target corrected image in the control system to determine the waybill information of the waybill to be identified based on the target corrected image.
2. The method according to claim 1, characterized in that Also includes: If the image confirmation instruction fed back by the control system is not received within the preset time period, the image to be processed is sent to the control system so that the control system performs image correction processing on the image to be processed to obtain a target corrected image.
3. The method according to claim 1, characterized in that The method further comprises: Upon receiving a parameter acquisition request from the control system, sending device identification information and device driving parameters of the image acquisition device to the control system to establish communication with the control system; The device type of the image acquisition device is sent to the control system so that the control system feeds back an image correction model that matches the device type.
4. The method according to claim 3, characterized in that Also includes: The device gain parameter and the device exposure parameter that are adapted to the device type and are sent by the control system are received, and the configuration parameters of the image acquisition device are updated based on the device gain parameter and the device exposure parameter.
5. The method according to claim 1, characterized in that The step of performing correction processing on the image to be processed based on the image correction model to obtain the corrected image to be confirmed includes: Performing image denoising on the image to be processed based on the image correction model to obtain a denoised image; Performing image sharpening processing on the denoised image to obtain a sharpened image; Performing color correction processing on the color distribution of the sharpened image to obtain a corrected image to be confirmed.
6. The method according to claim 2, characterized in that The step of sending the image to be processed to the control system so that the control system performs image correction processing on the image to be processed to obtain a target corrected image includes: Sending the image to be processed to the control system so that the control system matches at least one image correction model with the image to be processed to obtain a model matching attribute corresponding to each image correction model; Based on the model matching attribute, a target image correction model is determined from at least one of the image correction models, and correction processing is performed on the image to be processed based on the target image correction model to obtain a target corrected image.
7. An image correction device, characterized in that: include: An image acquisition module is used to acquire an image of the to-be-processed task attached to the to-be-processed task when a to-be-processed task is detected at the target position, to obtain an image to be processed; An image correction module, used for performing correction processing on the image to be processed based on an image correction model to obtain a corrected image to be confirmed, wherein the correction processing includes at least one of image denoising processing, image sharpening processing and color correction processing, and the image correction model is a model that matches the device type of the image acquisition device that acquires the image to be processed; The target correction image determination module is used to send the correction image to be confirmed to the control system, so that the control system can feedback the image determination instruction when determining that the correction image to be confirmed meets the preset requirements, and save the correction image to be confirmed as the target correction image in the control system, so as to determine the waybill information of the waybill to be identified based on the target correction image.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the image correction method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the image correction method according to any one of claims 1 to 6 when executed.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the image correction method according to any one of claims 1 to 6.
Citation Information
Cited By
Task program execution method and device, electronic equipment and storage medium
CN116433655A
Task program execution method, device, electronic device and storage medium
CN116433655B