Image processing method, device and machine-readable storage medium

By performing target detection and tracking in the video surveillance front-end equipment, intercepting and enhancing the original format video frames according to the quality score of the ROI area, the problem of poor ROI quality in video surveillance is solved, the image quality optimization effect is improved, and the Applicable scenarios.

CN112241982BActive Publication Date: 2024-08-27XINJIANG PINXUAN BIOTECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910651713.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-18
Publication Date
2024-08-27
Estimated Expiration
2039-07-18

AI Technical Summary

Technical Problem

Existing video surveillance technology suffers from poor quality of the region of interest (ROI) of the target image under the influence of factors such as lighting, camera installation height, and target movement, and the existing solution suffers serious information loss when optimizing the decoded image data, so it is not suitable for Scenarios are limited.

Method used

Target detection and tracking are performed in the video surveillance front-end equipment, the location information of the ROI area is determined, and the ROI area is intercepted and enhanced from the original format video frame according to the quality score to avoid information loss and expand applicable scenarios.

Benefits of technology

It improves the image quality optimization effect, avoids information loss during compression and transmission, and expands the applicable scenarios of the solution, which is no longer limited to vehicle information processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112241982B
    Figure CN112241982B
Patent Text Reader

Abstract

The present application provides an image processing method, device and machine-readable storage medium, the method comprising: performing target detection and tracking on surveillance video frames to determine the position information of the same target in each surveillance video frame; determining the region of interest (ROI) corresponding to the target in each surveillance video frame according to the position information of the same target in each surveillance video frame; enhancing the image sequence of the ROI region based on the quality score of the ROI region in each surveillance video frame; encoding and transmitting the enhanced image sequence. The method can improve the effect of image quality optimization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video surveillance, and in particular to an image processing method, device and machine-readable storage medium. Background Art

[0002] In recent years, with the continuous development of science and technology, more and more smart cameras have been applied to monitoring scenes to complete specific tasks. For example, face capture machines can detect faces in monitoring images in real time and transmit the detected face images to the server for face recognition; traffic capture machines can help traffic management departments quickly and effectively monitor illegal vehicles and capture and collect evidence of illegal vehicles.

[0003] However, due to the influence of factors such as lighting, camera mounting height, target motion, etc., the quality of the region of interest (ROI) in the target image obtained in the end generally varies greatly. Some images have good quality, but in many cases they may be blurry, lack brightness, lack contrast, and other poor quality conditions.

[0004] In view of the above situation, the current solution is to optimize the decoded image data at the back end, enhance the brightness and contour details of the ROI area in the monitoring image, and control the color of the ROI area, so as to achieve the purpose of improving the image clarity of the ROI area.

[0005] In practice, it is found that when the above solution processes the ROI area, the information is already the image data decoded after network transmission. At this time, the information is severely lost due to encoding and compression, and the subsequent processing improvement is limited. In addition, the current solution only processes traffic vehicle information and has limited applicable scenarios. Summary of the invention

[0006] In view of this, the present application provides an image processing method and an apparatus thereof.

[0007] Specifically, the present application is implemented through the following technical solutions:

[0008] According to a first aspect of an embodiment of the present application, there is provided an image processing method, which is applied to a video surveillance front-end device, and the method comprises:

[0009] Perform target detection and tracking on surveillance video frames to determine the location information of the same target in each surveillance video frame;

[0010] Determine the ROI area corresponding to the target in each monitoring video frame according to the position information of the same target in each monitoring video frame;

[0011] According to the quality score of the ROI area in each surveillance video frame, the ROI area is intercepted from the surveillance video frame in the original format in the cache, and an image sequence of the intercepted ROI area in the original format is enhanced;

[0012] The enhanced image sequence is encoded and transmitted.

[0013] According to a second aspect of an embodiment of the present application, there is provided an image processing device, which is applied to a video surveillance front-end device, and the device includes:

[0014] The target detection unit is used to detect and track the target in the monitoring video frame to determine the position information of the same target in each monitoring video frame;

[0015] A determination unit, configured to determine a region of interest (ROI) corresponding to the target in each surveillance video frame according to the position information of the same target in each surveillance video frame;

[0016] A capture unit, configured to capture the ROI region from the cached surveillance video frames in the original format according to the quality score of the ROI region in each surveillance video frame;

[0017] An enhancement processing unit, used for performing enhancement processing on the image sequence of the intercepted ROI area in the original format;

[0018] A transmission unit is used to encode and transmit the image sequence after enhancement processing.

[0019] According to a third aspect of an embodiment of the present application, there is provided an image processing device, comprising a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to execute the above-mentioned image processing method.

[0020] According to a fourth aspect of an embodiment of the present application, a machine-readable storage medium is provided, storing machine-executable instructions. When called and executed by a processor, the machine-executable instructions prompt the processor to execute the above-mentioned image processing method.

[0021] The image processing method of the embodiment of the present application performs target detection and tracking on the monitoring video frames through the video monitoring front-end device to determine the position information of the same target in each monitoring video frame, and determines the region of interest ROI area corresponding to the target in each monitoring video frame according to the position information of the same target in each monitoring video frame, and then, according to the quality score of the ROI area in each monitoring video frame, the ROI area is intercepted from the cached monitoring video frame in the original format, the image sequence of the intercepted ROI area in the original format is enhanced, and the enhanced image sequence is encoded and transmitted, thereby avoiding the influence of information loss in the compression transmission process on the image quality optimization and improving the effect of image quality optimization; in addition, image quality optimization is no longer limited to vehicles, which expands the applicable scenarios of the solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a flow chart of an image processing method shown in an exemplary embodiment of the present application;

[0023] Figure 2 It is a structural schematic diagram of a specific application scenario shown in an exemplary embodiment of the present application;

[0024] Figure 3A is a structural schematic diagram of a first processing module shown in an exemplary embodiment of the present application;

[0025] Figure 3B is a structural schematic diagram of a second sub-processing unit shown in an exemplary embodiment of the present application;

[0026] Figure 3C is a structural schematic diagram of a second processing module shown in an exemplary embodiment of the present application;

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

[0028] Figure 5 It is a schematic diagram of the hardware structure of an image processing device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0029] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0030] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0031] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application, the original format described in the present application is briefly described below.

[0032] The raw format refers to the original data format in which the image sensor converts the captured light source signal into a digital signal. The raw data contains sensing data from one or more spectral bands.

[0033] Exemplarily, the raw data may include sensing data obtained by sampling light signals in a spectral band with a wavelength range of 380 nm to 780 nm and / or 780 nm to 2500 nm.

[0034] For example, the RAW (unprocessed) image signal obtained by the RGB sensor.

[0035] Exemplarily, an imaging device collects light source signals, converts the collected light source signals into analog signals, converts the analog signals into digital signals, inputs the digital signals into a processing chip for processing (the processing may include bit width cropping, image processing, and encoding and decoding processing, etc.), obtains data in a second data format (the original format may be referred to as the first data format), and transmits the data in the second data format to a display device for display or other device for processing.

[0036] It can be seen that the image in the original format is the image when the sensor converts the collected light source information into a digital signal. The image has not been processed by the processing chip and has a high bit width. Compared with the image in the second data format that has undergone bit width cropping, image processing and encoding and decoding, it contains richer image information.

[0037] In order to make the above-mentioned purposes, features and advantages of the embodiments of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application are further described in detail below with reference to the accompanying drawings.

[0038] See also Figure 1 , is a flow chart of an image processing method provided in an embodiment of the present application, wherein the image processing method can be applied to a video surveillance front-end device, such as an IPC (Internet Protocol Camera, network camera), such as Figure 1 As shown, the image processing method may include the following steps:

[0039] For ease of description and understanding, the following description takes the execution subject of steps S100 to S130 as an IPC as an example.

[0040] Step S100: Target detection and tracking are performed on monitoring video frames to determine the position information of the same target in each monitoring video frame.

[0041] In an embodiment of the present application, when the IPC obtains a surveillance video, it can perform target detection on the surveillance video frame, and track the target after detecting the target to determine the position information of the same target in each surveillance video frame.

[0042] Exemplarily, the target may include but is not limited to pedestrians, vehicles, animals, license plates, etc.

[0043] In one example, the above-mentioned target detection and tracking of the surveillance video frames to determine the position information of the same target in each surveillance video frame may include:

[0044] Based on the neural network, target detection and tracking are performed on the surveillance video frames to determine the position information of the same target in each surveillance video frame.

[0045] Exemplarily, in order to achieve target detection and tracking in surveillance video frames, a neural network for target detection and tracking can be trained using target-annotated training samples, and the trained neural network can be used to perform target detection and tracking on surveillance video frames to determine the location information of the same target in each surveillance video frame.

[0046] Step S110: Determine the ROI area of ​​the region of interest corresponding to the target in each monitoring video frame according to the position information of the same target in each monitoring video frame.

[0047] In the embodiment of the present application, for any target, the IPC can determine the ROI area corresponding to the target in each monitoring video frame based on the position information of the target in each monitoring video frame.

[0048] Exemplarily, for any surveillance video frame, the target framed area in the surveillance video frame may be determined as the ROI area corresponding to the target in the surveillance video frame.

[0049] Step S120 , according to the quality score of the ROI region in each surveillance video frame, intercept the ROI region from the cached surveillance video frame in the original format, and perform enhancement processing on the image sequence of the ROI region in the original format.

[0050] In an embodiment of the present application, the video surveillance front-end device may also cache surveillance video frames in an original format when performing target detection and tracking on surveillance video frames.

[0051] For any target, when IPC determines the ROI area of ​​the target in each surveillance video frame, it can intercept the ROI area from the cached original format surveillance video frame according to the quality score of the ROI area in each surveillance video frame, and enhance the image sequence of the intercepted original format ROI area.

[0052] In a possible implementation, the above-mentioned intercepting the ROI area from the cached original format surveillance video frame according to the quality score of the ROI area in each surveillance video frame may include:

[0053] Determine the quality score of the ROI region in each surveillance video frame;

[0054] Based on the quality score of the ROI region in each surveillance video frame, the ROI region with a quality score higher than a preset score threshold is intercepted from the cached surveillance video frame in the original format.

[0055] Exemplarily, for any target, when the IPC determines the ROI region of the target in each surveillance video frame, a quality score can be given to the ROI region in each surveillance video frame.

[0056] For example, the quality score of the ROI area can be performed according to the target imaging quality in the ROI area (such as face clarity, face angle, etc.), or the quality score of the ROI area can be performed according to the quality of the image corresponding to the ROI area (such as image clarity, brightness, contrast, etc.), which is not elaborated in the embodiments of the present application.

[0057] In one example, the quality score of the ROI region in each surveillance video frame may be determined based on a neural network.

[0058] When IPC determines the quality score of the ROI area in each surveillance video frame, it can eliminate the surveillance video frames whose quality scores of the ROI area are not higher than a preset score threshold (which can be set according to the actual application scenario) from the cached surveillance video frames in the original format based on the quality scores of the ROI area in each surveillance video frame, and perform ROI area capture on the surveillance video frames whose quality scores of the ROI area are higher than the preset score threshold to obtain an image sequence of the ROI area in the original format, and perform enhancement processing on the captured image sequence of the ROI area in the original format.

[0059] In one example, the enhancement processing of the captured image sequence of the ROI region in the original format may include:

[0060] Select a reference frame from multiple frames of images in the image sequence of the ROI area in the input original format;

[0061] Align multiple image pairs based on a reference frame;

[0062] Based on the complementary information between the aligned multiple frame images, the multiple frame images are enhanced.

[0063] Exemplarily, when it is necessary to perform enhancement processing on the image sequence of the ROI area in the original format, multiple frames of images (the specific number of frames can be set according to the actual scenario) can be selected from the image sequence of the ROI area in the original format each time as input for the enhancement processing, and one frame of image can be selected from the input multiple frames of image as a reference frame.

[0064] For example, the middle frame or the last frame in the multi-frame image may be selected as the reference frame.

[0065] For example, assuming that the number of the multi-frame images is 3 frames, the second frame or the third frame may be selected as the reference frame.

[0066] After selecting the reference frame, the multiple image frames may be aligned based on the reference frame, and the multiple image frames may be enhanced based on complementary information between the aligned multiple image frames.

[0067] Step S130: Encode and transmit the enhanced image sequence.

[0068] In an embodiment of the present application, after the IPC performs enhancement processing on the image sequence of the corresponding ROI area in the manner described in the above steps, the enhanced image sequence can be encoded and compressed, and the encoded and compressed code stream can be transmitted to the back-end device through the network.

[0069] Exemplarily, after the IPC performs enhancement processing on the image sequence of the corresponding ROI region in the manner described in the above steps, it can select part or all of the image sequence from the enhanced image sequence for compression encoding and transmit it to the back-end device through the network.

[0070] In an example, encoding and transmitting the enhanced image sequence may include:

[0071] For the same target, a frame of image is selected from the enhanced image sequence for encoding and transmission.

[0072] Exemplarily, for any target, after the IPC performs enhancement processing on the image sequence of the ROI region corresponding to the target in the manner described in the above steps, a frame of image can be selected from the enhanced image sequence for encoding and transmission.

[0073] For example, the IPC may determine the quality score of each enhanced image frame and select the image frame with the highest quality score for encoding and transmission.

[0074] It can be seen that in Figure 1In the method flow shown, the video surveillance front-end device optimizes the image quality of the surveillance video frame according to the target in the surveillance video, thereby avoiding the influence of information loss in the compression transmission process on the image quality optimization and improving the effect of image quality optimization; in addition, image quality optimization is no longer limited to vehicles, which expands the applicable scenarios of the solution.

[0075] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application, the technical solutions provided by the embodiments of the present application are described below in conjunction with specific application scenarios.

[0076] See also Figure 2 , is a structural diagram of a specific application scenario provided by an embodiment of the present application, such as Figure 2 As shown, in this application scenario, the video surveillance front-end device may include a first processing module, a ROI area extraction module, a second processing module and a third processing module.

[0077] The image processing flow of this application is described below in combination with the functions of each module.

[0078] 1. First processing module

[0079] The first processing module is used for detecting a target and tracking the target after detecting the target.

[0080] Exemplarily, the first processing module can detect targets such as pedestrians, vehicles, animals or license plates, accurately locate the targets after detection, and output the target position information after positioning; then, based on the located target position information, track the targets around the targets to determine the position information of the targets in each frame of the image.

[0081] Exemplarily, when performing target detection, the first processing module may also cache the image sequence, such as caching the image sequence in a first data format (such as RGB (red, green, blue) format or YUV (brightness, chroma, saturation) format).

[0082] In an example, see Figure 3A The first processing module may include: a first sub-processing unit, a second sub-processing unit and a third sub-processing unit.

[0083] The first sub-processing unit is used to perform target detection to determine target position information in each frame of image;

[0084] The second sub-processing unit is used to track the target to determine the position information of the same target in each frame image;

[0085] The third sub-processing unit is used to evaluate the image quality of the target area and output an evaluation score (ie, the above-mentioned quality score).

[0086] For example, the first sub-processing unit can be implemented by a neural network to directly output the target coordinates. Figure 3B As shown, the neural network used to implement the first sub-processing unit may include a convolutional layer (Conv), a pooling layer (Pool), a fully connected layer (FC layer) and a bounding box regression (BBR).

[0087] For example, the operation of the convolutional layer can be expressed as follows:

[0088] YC i (I) = g(W i *YC i-1 (I)+B i )

[0089] Among them, YC i (I) is the output of the current convolutional layer, YC i-1 (I) is the input of the current convolutional layer, * indicates the convolution operation, W i and B i are the weight coefficient and offset coefficient of the convolution filter of the current convolution layer respectively. g() represents the activation function. When the activation function is ReLU, g(x)=max(0,x).

[0090] The pooling layer is a special downsampling layer, which reduces the feature map obtained by convolution, and the size of the reduced window is N×N. When the maximum pooling is used, the maximum value of the N×N window is taken as the value of the corresponding point of the latest image. The specific formula is as follows:

[0091] YP j (I) = maxpool(YP j-1 (I))

[0092] Among them, YC i (I) is the input of the jth pooling layer, YP j (I) is the output of the jth pooling layer.

[0093] The fully connected layer FC can be regarded as a convolutional layer with a filter window of 1×1. The specific implementation is similar to convolution filtering, and the expression is as follows:

[0094]

[0095] Among them, F kI (I) is the input of the kth fully connected layer, YF k (I) is the output of the kth fully connected layer, R and C are F kI (I) width and height, W ij and B ij They are the connection weight and bias of the fully connected layer respectively, and g() represents the activation function.

[0096] Bounding box regression (BBR) is to find a relationship so that the window P output by the fully connected layer can be mapped to a window G′ that is closer to the real window G. The implementation of regression is generally to translate or scale the window P.

[0097] Assuming that the coordinates of the window P output by the fully connected layer are (x1, x2, y1, y2), the coordinates of the transformed window are (x3, x4, y3, y4). If the transformation is a translation transformation, the translation scale is (Δx, Δy), and the coordinate relationship before and after the translation is:

[0098] x3=x1+Δx

[0099] x4=x2+Δx

[0100] y3=y1+Δy

[0101] y4=y2+Δy

[0102] If the transformation is a scaling transformation, the scaling scales in the X and Y directions are dx and dy respectively, and the coordinate relationship before and after the transformation is:

[0103] x4-x3=(x2-x1)*dx

[0104] y4-y3=(y2-y1)*dy

[0105] The second sub-processing unit is used to locate the target in the current frame according to the target position information of the current image frame detected by the first sub-processing unit, and compare the similarity between the target of the current image frame and the target of the previous image frame. If the similarity is higher than the set threshold, they are considered to be the same target, and the target position information is updated to achieve target tracking.

[0106] The third sub-processing unit is used to evaluate the image quality of the target area of ​​the current image frame to obtain a quality score.

[0107] Taking the image quality evaluation of the target area by the average brightness as an example, the average brightness of the target area can be calculated, and the calculation formula is as follows:

[0108]

[0109] Where L m represents the average brightness of the target area, n represents the total number of pixels in the target area, and R represents the target area.

[0110] The quality score of the target area is calculated as follows:

[0111] S=100-|80-L m |

[0112] The higher the quality score, the better the image quality.

[0113] 2. ROI Region Capture Module

[0114] The ROI region interception module is used to intercept the ROI region (ie the above-mentioned target region) image in multiple frames of images (original images) based on the location information of the target.

[0115] Exemplarily, the ROI region capture module may capture the ROI region image from the cached image sequence in the first data format based on the location information of the target.

[0116] When performing ROI region image capture on the original image, the original image whose quality score of the target area is not higher than the preset score threshold is discarded, and the original image whose quality score of the target area is higher than the preset score threshold is retained, and the ROI region image is captured.

[0117] 3. Second processing module

[0118] The second processing module is used to align the multiple frames of ROI area images and perform enhancement processing on the multiple frames of ROI area images according to the complementary information between the multiple frames of ROI area images.

[0119] In one example, if Figure 3C As shown, the second processing module includes: a fourth sub-processing unit and a fifth sub-processing unit.

[0120] The fourth sub-processing unit is used to select a frame from the input multiple frames of ROI area images as a reference frame, and perform position transformation on other frames based on the reference frame to align them with the reference frame;

[0121] The fifth sub-processing unit is used to perform enhancement processing according to the aligned multiple frames of ROI region images and by utilizing complementary information between the multiple frames of ROI region images.

[0122] In one example, after the input multiple frames of ROI area images are enhanced in the above manner, one frame of enhanced ROI area image can be output (which can be a reference frame enhanced by using complementary information between multiple frames of ROI area images).

[0123] Exemplarily, the fourth sub-processing unit may be implemented by a convolutional neural network or may not be implemented by a convolutional neural network.

[0124] For example, assuming that the fourth sub-processing unit is implemented by a non-convolutional neural network, the feature points of the target image (such as any frame ROI area image in the above-mentioned multi-frame ROI area image except the reference frame) and the reference image (that is, the above-mentioned reference frame) can be first extracted through feature point detection methods such as SIFT (Scale-invariant feature transform) and Harris corner detection; then the image transformation parameters are calculated based on the position information between the feature points; finally, the multi-frame images are transformed to obtain aligned multi-frame image data.

[0125] The image transformation methods may include but are not limited to projection transformation, affine transformation, rotation-translation transformation, translation transformation, etc.

[0126] Taking the image transformation through rotation and translation as an example, the image transformation formula is as follows:

[0127]

[0128] Where x and y represent the transformed coordinates of each pixel in the image, w and z represent the coordinates of each pixel in the image, and α and d hor d ver Represents the image transformation parameters obtained by the transformation parameter calculation module.

[0129] Exemplarily, the fifth sub-processing unit is used to enhance multiple frames of ROI area images, which can be implemented through a convolutional neural network or a non-convolutional neural network, and the embodiments of the present application are not described in detail here.

[0130] 4. The third processing module

[0131] The third processing module is used to compress and encode the enhanced ROI area image and transmit it to the back-end device through the network.

[0132] In an embodiment of the present application, target detection and tracking are performed on monitoring video frames through a video monitoring front-end device to determine the position information of the same target in each monitoring video frame, and based on the position information of the same target in each monitoring video frame, the region of interest ROI area corresponding to the target in the said monitoring video frame is determined, and then, based on the quality score of the ROI area in each monitoring video frame, the ROI area is intercepted from the cached monitoring video frame in the original format, the image sequence of the intercepted ROI area in the original format is enhanced, and the enhanced image sequence is encoded and transmitted, thereby avoiding the influence of information loss in the compression transmission process on image quality optimization and improving the effect of image quality optimization; in addition, image quality optimization is no longer limited to vehicles, which expands the applicable scenarios of the solution.

[0133] The method provided by the present application is described above. The device provided by the present application is described below:

[0134] See also Figure 4 , is a schematic diagram of the structure of an image processing device provided in an embodiment of the present application, such as Figure 4 As shown, the image processing device may include:

[0135] The target detection unit 410 is used to detect and track targets in the surveillance video frames to determine the position information of the same target in each surveillance video frame;

[0136] A determination unit 420 is used to determine a region of interest ROI area corresponding to the target in each monitoring video frame according to the position information of the same target in each monitoring video frame;

[0137] The interception unit 430 is used to intercept the ROI area from the cached original format surveillance video frame according to the quality score of the ROI area in each surveillance video frame;

[0138] An enhancement processing unit 440 is used to perform enhancement processing on the image sequence of the intercepted ROI area in the original format;

[0139] The transmission unit 450 is used to encode and transmit the enhanced image sequence.

[0140] In an optional implementation, the target detection unit 410 is specifically configured to perform target detection and tracking on the surveillance video frames based on a neural network to determine location information of the same target in each surveillance video frame.

[0141] In an optional implementation, the determination unit 420 is further configured to determine a quality score of the ROI region in each surveillance video frame;

[0142] The interception unit 430 is specifically configured to intercept, based on the quality scores of the ROI regions in the surveillance video frames, the ROI regions with quality scores higher than a preset score threshold from the cached surveillance video frames in the original format.

[0143] In an optional embodiment, the enhancement processing unit 440 is specifically used to select a reference frame from multiple frame images in an image sequence of an ROI area in an input original format; align the multiple frame image pairs based on the reference frame; and enhance the multiple frame images based on complementary information between the aligned multiple frame images.

[0144] In an optional implementation, the transmission unit 450 is specifically configured to select part or all of the image frames from the enhanced image sequence for encoding and transmission for the same target.

[0145] In an optional implementation, the transmission unit 450 is specifically configured to select a frame of image with the highest quality score from the enhanced image sequence for encoding and transmission.

[0146] See also Figure 5 , is a schematic diagram of the hardware structure of an image processing device provided in an embodiment of the present application. The image processing device may include a processor 501 and a machine-readable storage medium 502 storing machine-executable instructions. The processor 501 and the machine-readable storage medium 502 may communicate via a system bus 503. Furthermore, by reading and executing the machine-executable instructions corresponding to the image processing logic in the machine-readable storage medium 502, the processor 501 may execute the image processing method described above.

[0147] The machine-readable storage medium 502 mentioned herein may be any electronic, magnetic, optical or other physical storage device that may contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium may be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as optical disk, DVD, etc.), or similar storage medium, or a combination thereof.

[0148] The present application also provides a machine-readable storage medium including machine-executable instructions, such as Figure 5 The machine-readable storage medium 502 in the image processing apparatus may be executed by a processor 501 in the image processing apparatus to implement the image processing method described above.

[0149] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0150] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. An image processing method, It is characterized in that Applied to a video surveillance front-end device, the method comprises: Perform target detection and tracking on surveillance video frames to determine the location information of the same target in each surveillance video frame; Determine the region of interest (ROI) corresponding to the target in each surveillance video frame according to the position information of the same target in each surveillance video frame; According to the quality score of the ROI area in each surveillance video frame, the ROI area is intercepted from the cached surveillance video frame in the original format, and the image sequence of the intercepted ROI area in the original format is enhanced; wherein the original format refers to the original data format in which the image sensor converts the captured light source signal into a digital signal, and the original data is sensing data from one or more spectral bands; encoding and transmitting the enhanced image sequence; The step of enhancing the image sequence of the intercepted ROI area in the original format includes: Select a reference frame from multiple frames of images in the image sequence of the ROI area in the original format input; Aligning the multiple image pairs based on the reference frame; Based on the complementary information between the aligned multiple image frames, enhancing the multiple image frames; The method of extracting the ROI region from the cached surveillance video frames in the original format according to the quality score of the ROI region in each surveillance video frame includes: Determine the quality score of the ROI region in each monitoring video frame; Based on the quality scores of the ROI regions in the surveillance video frames, ROI regions with quality scores higher than a preset score threshold are intercepted from the surveillance video frames in the cached original format.

2. The method according to claim 1, It is characterized in that The target detection and tracking of the surveillance video frames to determine the position information of the same target in each surveillance video frame includes: Based on a neural network, target detection and tracking are performed on the surveillance video frames to determine the position information of the same target in each surveillance video frame.

3. The method according to claim 1, It is characterized in that The method of intercepting the ROI region from the cached original format surveillance video frames according to the quality score of the ROI region in each surveillance video frame comprises: Determine the quality score of the ROI region in each monitoring video frame; Based on the quality scores of the ROI regions in the surveillance video frames, ROI regions with quality scores higher than a preset score threshold are intercepted from the surveillance video frames in the cached original format.

4. The method according to claim 1, It is characterized in that The step of encoding and transmitting the enhanced image sequence comprises: For the same target, part or all of the image frames are selected from the enhanced image sequence for encoding and transmission.

5. The method according to claim 4, It is characterized in that The step of selecting a portion of image frames from the enhanced image sequence for encoding and transmission includes: A frame of image with the highest quality score is selected from the enhanced image sequence for encoding and transmission.

6. An image processing device, It is characterized in that Applied to video surveillance front-end equipment, the device comprises: The target detection unit is used to detect and track the target in the monitoring video frame to determine the position information of the same target in each monitoring video frame; A determination unit, configured to determine a region of interest (ROI) corresponding to the target in each surveillance video frame according to the position information of the same target in each surveillance video frame; A capture unit, configured to capture the ROI region from the cached surveillance video frames in the original format according to the quality score of the ROI region in each surveillance video frame; wherein the original format refers to the original data format in which the image sensor converts the captured light source signal into a digital signal, and the original data is sensing data from one or more spectral bands; An enhancement processing unit, used for performing enhancement processing on the image sequence of the intercepted ROI area in the original format; A transmission unit, used for encoding and transmitting the image sequence after enhancement processing; The interception unit intercepts the ROI area from the cached original format surveillance video frames according to the quality score of the ROI area in each surveillance video frame, including: Determine the quality score of the ROI region in each monitoring video frame; Based on the quality scores of the ROI regions in the surveillance video frames, ROI regions with quality scores higher than a preset score threshold are intercepted from the surveillance video frames in the cached original format.

7. The device according to claim 6, It is characterized in that The target detection unit is specifically used to perform target detection and tracking on the monitoring video frames based on a neural network to determine the position information of the same target in each monitoring video frame.

8. The device according to claim 6, It is characterized in that The determining unit is further used to determine the quality score of the ROI area in each monitoring video frame; The interception unit is specifically configured to intercept, based on the quality scores of the ROI regions in the surveillance video frames, the ROI regions with quality scores higher than a preset score threshold from the cached surveillance video frames in the original format.

9. The device according to claim 6, It is characterized in that The transmission unit is specifically used to select part or all of the image frames from the enhanced image sequence for encoding and transmission for the same target.

10. The device according to claim 9, It is characterized in that The transmission unit is specifically used to select a frame of image with the highest quality score from the enhanced image sequence for encoding and transmission.

11. An image processing device, It is characterized in that The method comprises a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to execute the method according to any one of claims 1 to 5.

12. A machine-readable storage medium, It is characterized in that Machine executable instructions are stored, and when called and executed by a processor, the machine executable instructions prompt the processor to execute the method according to any one of claims 1 to 5.