Image data compression upload method, device and electronic device

By dividing the image data into the first time period and the second time period, and using different compression schemes to process it, the problem of large camera image data volume is solved, the data volume is reduced and the bandwidth is optimized, which is suitable for scenes such as highways. .

CN116208863BActive Publication Date: 2024-10-29BEIJING JINSHI JIAYE TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211713311.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2024-10-29
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

In the existing technology, the amount of image data collected by cameras is large, resulting in excessive bandwidth usage for uploading to the server.

Method used

By dividing the image data into a first time period and a second time period, and using different compression schemes respectively, the images in the first time period are processed with a high compression rate, and the images in the second time period are processed with a lower compression rate. And upload the comparison image and compressed data to the server to restore the video stream.

Benefits of technology

It effectively reduces the amount of data uploaded by the image acquisition device to the server, reduces bandwidth usage, and is suitable for scenarios such as highways.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116208863B_ABST
    Figure CN116208863B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device and electronic device for compressing and uploading image data. The method can be applied to an image acquisition device, and the method comprises: acquiring a target frame image of a target object, and judging whether the target frame image belongs to a first time period or a second time period; if the target frame image belongs to the first time period, compressing the target frame image according to a first reference image of the first time period to form compressed data; if the target frame image belongs to the second time period, compressing the target frame image according to a second reference image of the second time period to form compressed data, and adding object information to the compressed data; uploading the first reference image, the second reference image and the compressed data to a server, so as to restore the target frame image on the server according to the compressed data to form a video stream; the embodiment of the present application can reduce the amount of data uploaded from the image acquisition device to the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device and electronic equipment for compressing and uploading image data. Background Art

[0002] Cameras are usually installed on highways to record and manage the driving conditions of passing vehicles.

[0003] Currently, the information collected by the cameras is usually uploaded to the server, where the information collected by multiple cameras is modeled, fused, and combined, and displayed to the management personnel.

[0004] However, the existing solution is to upload all the information collected by the camera to the server, and the amount of data that needs to be uploaded is large. Summary of the invention

[0005] The embodiment of the present invention provides an image data compression uploading method, device and storage medium thereof, so as to reduce the amount of data uploaded by a collection device.

[0006] In order to solve the above-mentioned technical problems, the present invention is achieved as follows:

[0007] In a first aspect, the present application provides an image data compression and uploading method, which is applied to an image acquisition device, and the method includes: acquiring a target frame image of a target object, and determining whether the target frame image belongs to a first time period or a second time period, the first time period refers to a time period before the object information of the target object is determined based on the frame image, and the second time period refers to a time period after the object information of the target object is determined based on the frame image; if the target frame image belongs to the first time period, the target frame image is compressed based on a first reference image of the first time period to form compressed data; if the target frame image belongs to the second time period, the target frame image is compressed based on a second reference image of the second time period to form compressed data, and the object information is added to the compressed data; uploading the first reference image, the second reference image and the compressed data to a server, so that the server can restore the target frame image based on the compressed data to form a video stream.

[0008] Furthermore, the determination of whether the target frame image belongs to the first time period or the second time period includes: determining whether the target frame image is associated with object information; if not, identifying the target object in the target frame image, and when the object information of the target object is identified, associating the object information with the target frame image and the frame image after the target frame image, and dividing the target frame image into the second time period; if the object information of the target object is not identified, determining that the target frame image belongs to the first time period; if so, determining that the target frame image belongs to the second time period.

[0009] Furthermore, the method also includes: receiving an object information clearing instruction issued by the server, wherein the object information clearing instruction is generated after the server receives the object information uploaded by the next acquisition device of the image acquisition device, or is generated after a preset time period; and clearing the stored object information according to the object information clearing instruction.

[0010] Furthermore, the method also includes: extracting the first frame image of the first time period, and extracting frame images of the first time period according to the first time interval to form a plurality of first comparison images, so that the target frame image is compressed according to the first comparison images.

[0011] Furthermore, the method also includes: extracting the first frame image of the second time period, and extracting frame images of the second time period according to the second time interval to form multiple second comparison images, so that the target frame image is compressed according to the first comparison image; the second time interval is smaller than the first time interval.

[0012] Furthermore, the step of compressing the target frame image includes: dividing the target frame image into a target object image and a background image, and removing the background image; determining the position information, behavior information and trajectory prediction information of the target object in the acquisition area according to the position of the target object image in the target frame image, and forming compressed data.

[0013] Furthermore, the method of acquiring the target frame image of the target object includes: receiving an associated acquisition angle of an associated acquisition device related to the image acquisition device and sent by a server; determining a segmentation scheme of the frame image related to the target object based on the associated acquisition angle and the target acquisition angle of the image acquisition device, wherein the segmentation scheme is determined based on the degree of overlap of the acquisition areas of the image acquisition device and the associated acquisition device; segmenting the frame image related to the target object according to the segmentation scheme to obtain the target frame image; and when uploading acquisition data, adding the angle information of the image acquisition device to the acquisition data for uploading, so as to compress the acquisition image of the associated acquisition device, wherein the acquisition data includes a first comparison image, a second comparison image and compressed data.

[0014] Furthermore, the segmentation scheme is used to make the difference in the amount of data uploaded by the image acquisition device and the associated acquisition device smaller than a preset threshold.

[0015] In a second aspect, the present application provides an image data compression and uploading device, the device comprising: an image acquisition module, used to obtain a target frame image of a target object, and determine whether the target frame image belongs to a first time period or a second time period, the first time period refers to a time period before the object information of the target object is determined based on the frame image, and the second time period refers to a time period after the object information of the target object is determined based on the frame image; a first compression module, used to compress the target frame image according to a first reference image of the first time period to form compressed data if the target frame image belongs to the first time period; a second compression module, used to compress the target frame image according to a second reference image of the second time period to form compressed data if the target frame image belongs to the second time period; a data uploading module, used to upload the first reference image, the second reference image and the compressed data to a server, so that the server can restore the target frame image according to the compressed data to form a video stream.

[0016] In a third aspect, the present application provides an electronic device comprising: a memory and at least one processor; the memory is used to store computer-executable instructions; the at least one processor is used to execute the computer-executable instructions stored in the memory, so that the at least one processor executes the method described in the first aspect.

[0017] The present application provides an image data compression and uploading method, which can be applied to an image acquisition device. The image acquisition device can obtain a target frame image of a target object and determine whether the target frame image belongs to a first time period or a second time period. The first time period refers to a time period before the object information of the target object is determined based on the frame image, and the second time period refers to a time period after the object information of the target object is determined based on the frame image; if the target frame image belongs to the first time period, the target frame image is compressed based on a first reference image of the first time period to form compressed data; if the target frame image belongs to the second time period, the target frame image is compressed based on a second reference image of the second time period to form compressed data, and the object information is added to the compressed data; the first reference image, the second reference image and the compressed data are uploaded to a server, so that the target frame image is restored on the server based on the compressed data to form a video stream. In the embodiment of the present application, the image acquisition device can divide the acquired images into two time periods. The first time period is the time period when the object information (such as vehicle information) is not recognized. At this time, the target object (such as vehicle) is far away from the camera, and the image content is not clear and of low importance. The second time period is the time period after the object information is recognized. At this time, the target object is close to the camera, and the image content is clearer and more important. Therefore, the first compression process (with a higher compression rate) is performed on the images in the first time period, and the second compression process is performed on the images in the second time period, and the compressed information is uploaded to the server. The image is restored in the server based on the first comparison image, the second comparison image and the compressed data, thereby forming a video stream. Compared with the solution of directly uploading the full video, this solution compresses the image, which can reduce the amount of data uploaded by the image acquisition device to the server and reduce the bandwidth occupied. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0019] Figure 1 It is a flowchart of an image data compression and uploading method according to an embodiment of the present application;

[0020] Figure 2 This is a schematic diagram of the steps of a method for compressing and uploading image data according to another embodiment of the present application;

[0021] Figure 3 It is a structural diagram of an image data compression and uploading device according to an embodiment of the present application. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.

[0023] The present invention provides an image data compression upload method, which can be applied to an image acquisition device, which can be understood as a camera. The solution of the present application can be applied to a road management scenario, and the camera can be used to collect image information of passing vehicles and upload it to a server. In a more specific embodiment, the solution can be applied to cameras on highways, thereby reducing the amount of data uploaded to the server by the high-speed camera.

[0024] Some data compression schemes are to divide the images captured by the image acquisition device into control images and compressed images. For the control images, feature extraction can be performed and the image features can be uploaded to the server. For the compressed images, the difference between the compressed image and the control image (the control image can be the previous frame or the next frame of the compressed image) can be analyzed, and the difference information can be uploaded to the server. The server can restore the image based on the image features of the control image and the features of the compressed image, thereby forming a video stream containing multiple frames of images, which can be output on the display (or fused, 3D modeling, etc.). The process of extracting features from the first control image and the second control image of this scheme is similar to the above process and will not be repeated here. However, using the above scheme, the processing methods for poor quality images (such as images that cannot recognize vehicle information) and good quality images (such as images that recognize vehicle information) are the same, and the data compression is not reasonable enough.

[0025] The solution of the embodiment of the present application is as follows Figure 1As shown, the image can be divided into an image corresponding to a first time period and an image corresponding to a second time period. The first time period refers to a time period before the object information of the target object is determined based on the frame image, and the second time period refers to a time period after the object information of the target object is determined based on the frame image. It can be seen that the image quality of the second time period is better, and the image quality of the first time period is poor. Therefore, this solution can further compress the image of the first time period to reduce the amount of data uploaded for the image in the first time period. This solution can pre-set two image compression schemes, the first compression scheme refers to collecting a reference image according to a first time interval, and compressing other frame images in the first time period according to the reference image. The second compression scheme refers to collecting a reference image according to a second time interval, and compressing other frame images in the second time period according to the reference image. Among them, the second time interval is less than the first time interval. Correspondingly, fewer reference images are collected in the first time period, and the amount of data of the compressed image is more, thereby reducing the amount of data uploaded for the image in the first time period. In addition, for data compression, on a highway, the background other than the target object usually changes very little. Therefore, when performing data compression, the embodiment of the present application focuses on part of the content of the target object (including the small picture of the target object), removes the background-related content, and extracts the position, behavior and trajectory of the target object in the collection area, and then uploads it to the server. Compared with the solution based on analyzing the difference of the comparison image, this solution is more suitable for this scenario.

[0026] The image acquisition device can upload the reference image (the image is uploaded directly or the converted image features are uploaded. The reference image itself can also be compressed. For details, please refer to the compression of a single image) and compressed data. The server restores the image based on the image features and compressed data of the reference image, thereby forming a video containing multiple frames of images for display.

[0027] Specifically, the embodiment of the present application provides a method for uploading compressed image data, which can be applied to an image acquisition device, which can be understood as a camera. The image acquisition device can upload data to a server, which can be understood as a device for image restoration and image display. Specifically, the method includes:

[0028] Step 202, obtain a target frame image of the target object, and determine whether the target frame image belongs to a first time period or a second time period, wherein the first time period refers to a time period before the object information of the target object is determined based on the frame image, and the second time period refers to a time period after the object information of the target object is determined based on the frame image.

[0029] The target frame image may be an image that has been preliminarily compressed. The preliminarily compressed image may be an image where the acquisition area of ​​the image acquisition device and the associated image acquisition device overlap. In this case, the acquired image may be segmented by deduplication to obtain the target frame image. Specifically, as an optional embodiment, the acquisition of the target frame image of the target object includes: receiving an associated acquisition angle of an associated acquisition device related to the image acquisition device issued by a server; determining a segmentation scheme for the frame image related to the target object based on the associated acquisition angle and the target acquisition angle of the image acquisition device, wherein the segmentation scheme is determined based on the overlap between the acquisition area of ​​the image acquisition device and the associated acquisition device; segmenting the frame image related to the target object according to the segmentation scheme to obtain the target frame image; when uploading the acquired data, adding the angle information of the image acquisition device to the acquired data for uploading to compress the acquired image of the associated acquisition device, wherein the acquired data includes a first comparison image, a second comparison image, and compressed data.

[0030] The direction of the image acquisition device can be adjusted (such as 360-degree adjustment, such as adjusting the direction by 180 degrees to capture images in another direction). Therefore, multiple segmentation schemes can be pre-set in the image acquisition device, and the segmentation scheme is associated with the first angle of the image acquisition device and the second angle of the associated acquisition device. In addition, when uploading images, the image acquisition device and the associated acquisition device can upload the current angle of the image acquisition device to the server. When the angle is updated, the server can send the angle to the associated image acquisition device to determine the corresponding segmentation scheme. By segmenting the captured image, the amount of data analyzed by the image acquisition device can be reduced. In addition, the segmentation scheme tries to make the analysis amount of the image acquisition device and the associated acquisition device consistent. Thereby, the computing power of each party can be more fully utilized. Specifically, as an optional embodiment, the segmentation scheme is used to make the difference in the amount of data uploaded by the image acquisition device and the associated acquisition device less than a preset threshold.

[0031] Specifically, as an optional embodiment, the determination of whether the target frame image belongs to the first time period or the second time period includes: determining whether the target frame image is associated with object information; if not, identifying the target object in the target frame image, and when the object information of the target object is identified, associating the object information with the target frame image and the frame image after the target frame image, and dividing the target frame image into the second time period, if the object information of the target object is not identified, then determining that the target frame image belongs to the first time period; if so, then determining that the target frame image belongs to the second time period. This scheme determines the first time period and the second time period by identifying the object information of the target object in the frame image (such as the license plate number, color, vehicle type, etc., all of which are identified and then determined as the object information is identified, or the license plate number is identified and then determined as the object information is identified). After obtaining the object information, the object information can be directly bound to the subsequent frame image, and the other images in the second time period do not need to continue to identify the object information.

[0032] In an optional embodiment, in the process of identifying the object information of the target object in the frame image, a small image related to the target object can be cut out from the target frame image for further analysis.

[0033] After determining which time period the frame image belongs to, in step 204, if the target frame image belongs to the first time period, the target frame image may be compressed according to the first reference image of the first time period to form compressed data. In step 206, if the target frame image belongs to the second time period, the target frame image may be compressed according to the second reference image of the second time period to form compressed data, and the object information may be added to the compressed data.

[0034] As an optional embodiment, the method further includes: extracting the first frame image of the first time period, and extracting the frame images of the first time period according to the first time interval to form a plurality of first comparison images, so that the target frame image is compressed according to the first comparison image. As an optional embodiment, the method further includes: extracting the first frame image of the second time period, and extracting the frame images of the second time period according to the second time interval to form a plurality of second comparison images, so that the target frame image is compressed according to the first comparison image; the second time interval is less than the first time interval.

[0035] This solution can further compress the images in the first time period, thereby reducing the amount of data uploaded for the images in the first time period. This solution can pre-set two image compression schemes. The first compression scheme refers to collecting a control image at a first time interval, and compressing other frame images in the first time period based on the control image. The second compression scheme refers to collecting a control image at a second time interval, and compressing other frame images in the second time period based on the control image. The second time interval is smaller than the first time interval. Accordingly, fewer control images are collected in the first time period, and the amount of data of the compressed images is larger, thereby reducing the amount of data uploaded for the images in the first time period.

[0036] Specifically, as an optional embodiment, the step of compressing the target frame image includes: dividing the target frame image into a target object image and a background image, and removing the background image; determining the position information, behavior information and trajectory prediction information of the target object in the acquisition area according to the position of the target object image in the target frame image, and forming compressed data. For data compression, on a highway, the background other than the target object usually changes very little. Therefore, when performing data compression, the embodiment of the present application pays attention to the target object part, removes the background-related content, and extracts the position, behavior and trajectory of the target object in the acquisition area, and uploads them to the server. Compared with the solution based on analyzing the difference of the comparison image, this solution is more suitable for this scenario.

[0037] The object information of the target object is stored in the image acquisition device. After the target object enters the next acquisition device or after a preset time, the server can clear the object information stored in the image acquisition device by issuing a clear instruction. Specifically, as an optional embodiment, the method further includes: receiving an object information clear instruction issued by the server, the object information clear instruction is generated after the server receives the object information uploaded by the next acquisition device of the image acquisition device, or, after a preset time; according to the object information clear instruction, clear the stored object information.

[0038] After processing the target frame image, in step 208, the first control image, the second control image and the compressed data can be uploaded to the server, so that the target frame image can be restored on the server based on the compressed data to form a video stream. The image restoration model can be pre-trained on the server, and the image uploaded by the image acquisition device also carries information such as image time and moving speed of the target object. The image restoration model of the server can infer the size of the target object in the target frame image based on the image time, vehicle speed, and images related to the target object in the control image, and form a prediction map of the target object (if it carries object information, the object information can also be added to the prediction map). In combination with the position, trajectory and behavior (left lane change, right lane change, etc.) in the compressed data, the prediction map is integrated into the background image of the control image to form a restored image.

[0039] In the embodiment of the present application, the image acquisition device can divide the acquired images into two time periods. The first time period is the time period when the object information (such as vehicle information) is not recognized. At this time, the target object (such as vehicle) is far away from the camera, and the image content is not clear and of low importance. The second time period is the time period after the object information is recognized. At this time, the target object is close to the camera, and the image content is clearer and more important. Therefore, the first compression process is performed on the images in the first time period, and the second compression process is performed on the images in the second time period, and the compressed information is uploaded to the server. The image is restored in the server based on the first comparison image, the second comparison image and the compressed data, thereby forming a video stream. Compared with the solution of directly uploading the full video, this solution compresses the image and only retains the key data, which can reduce the amount of data uploaded by the image acquisition device to the server and reduce the bandwidth usage.

[0040] Based on the above embodiments, the present application also provides an image data compression upload device, such as Figure 3 As shown, the device includes: an image acquisition module, which is used to obtain a target frame image of a target object and determine whether the target frame image belongs to a first time period or a second time period, wherein the first time period refers to a time period before the object information of the target object is determined based on the frame image, and the second time period refers to a time period after the object information of the target object is determined based on the frame image; a first compression module, which is used to compress the target frame image according to a first reference image of the first time period to form compressed data if the target frame image belongs to the first time period; a second compression module, which is used to compress the target frame image according to a second reference image of the second time period to form compressed data if the target frame image belongs to the second time period; and a data uploading module, which is used to upload the first reference image, the second reference image and the compressed data to a server, so that the server can restore the target frame image according to the compressed data to form a video stream.

[0041] The implementation of this embodiment is similar to the implementation of the above method embodiment. The specific implementation can refer to the specific implementation of the above method, which will not be repeated here.

[0042] In the embodiment of the present application, the image acquisition device can divide the acquired images into two time periods. The first time period is the time period when the object information (such as vehicle information) is not recognized. At this time, the target object (such as vehicle) is far away from the camera, and the image content is not clear and of low importance. The second time period is the time period after the object information is recognized. At this time, the target object is close to the camera, and the image content is clearer and more important. Therefore, the first compression process is performed on the images in the first time period, and the second compression process is performed on the images in the second time period, and the compressed information is uploaded to the server. The image is restored in the server based on the first comparison image, the second comparison image and the compressed data, thereby forming a video stream. Compared with the solution of directly uploading the full video, this solution compresses the image and only retains the key data, which can reduce the amount of data uploaded by the image acquisition device to the server and reduce the bandwidth usage.

[0043] Based on the above embodiments, this embodiment also provides an electronic device, including: a memory and at least one processor; the memory is used to store computer execution instructions; the at least one processor is used to execute the computer execution instructions stored in the memory, so that the at least one processor executes the method described in the above embodiments.

[0044] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned data processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0045] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0046] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0047] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0048] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0049] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0050] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0051] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0052] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0053] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0054] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims

1. A method for uploading compressed image data, characterized in that: Applied to an image acquisition device, the image acquisition device is a camera on a highway, and the method comprises: Acquire a target frame image of a target object, and determine whether the target frame image belongs to a first time period or a second time period, wherein the first time period refers to a time period before object information of the target object is determined based on the frame image, and the second time period refers to a time period after object information of the target object is determined based on the frame image; If the target frame image belongs to the first time period, compressing the target frame image according to the first comparison image of the first time period to form compressed data; If the target frame image belongs to the second time period, compressing the target frame image according to the second reference image of the second time period to form compressed data, and adding the object information to the compressed data; Uploading the first comparison image, the second comparison image and the compressed data to the server, so that the server restores the target frame image according to the compressed data to form a video stream; The method further includes: extracting the first frame image of the first time period, and extracting the frame images of the first time period according to the first time interval to form a plurality of first comparison images, so that the target frame image is compressed according to the first comparison image; extracting the first frame image of the second time period, and extracting the frame images of the second time period according to the second time interval to form a plurality of second comparison images, so that the target frame image is compressed according to the first comparison image; the second time interval is less than the first time interval; The step of compressing the target frame image includes: dividing the target frame image into a target object image and a background image, and removing the background image; determining the position information, behavior information and trajectory prediction information of the target object in the acquisition area according to the position of the target object image in the target frame image, and forming compressed data; the step of judging whether the target frame image belongs to the first time period or the second time period includes: judging whether the target frame image is associated with object information; if not, identifying the target object in the target frame image, and when the object information of the target object is identified, associating the object information with the target frame image and the frame image after the target frame image, and dividing the target frame image into the second time period, if the object information of the target object is not identified, determining that the target frame image belongs to the first time period; if so, determining that the target frame image belongs to the second time period; the method also includes: receiving an object information clearing instruction issued by a server The object information clearing instruction is generated after the server receives the object information uploaded by the next acquisition device of the image acquisition device; according to the object information clearing instruction, the stored object information is cleared; the target frame image of the target object is obtained, including: receiving the associated acquisition angle of the associated acquisition device related to the image acquisition device issued by the server; determining the segmentation scheme of the frame image related to the target object according to the associated acquisition angle and the target acquisition angle of the image acquisition device, the segmentation scheme is determined according to the overlap of the acquisition area of ​​the image acquisition device and the associated acquisition device; segmenting the frame image related to the target object according to the segmentation scheme to obtain the target frame image; when uploading the acquisition data, adding the angle information of the image acquisition device to the acquisition data for uploading, so as to compress the acquisition image of the associated acquisition device, the acquisition data includes a first comparison image, a second comparison image and compressed data.

2. The method according to claim 1, characterized in that: The segmentation scheme is used to make the difference in the amount of data uploaded by the image acquisition device and the associated acquisition device smaller than a preset threshold.

3. An image data compression and uploading device, characterized in that: The device comprises: An image acquisition module, used to acquire a target frame image of a target object, and determine whether the target frame image belongs to a first time period or a second time period, wherein the first time period refers to a time period before object information of the target object is determined based on the frame image, and the second time period refers to a time period after object information of the target object is determined based on the frame image; A first compression module, configured to compress the target frame image according to a first reference image of the first time period to form compressed data if the target frame image belongs to the first time period; A second compression module is used for compressing the target frame image according to the second reference image of the second time period to form compressed data if the target frame image belongs to the second time period; A data uploading module, used for uploading the first comparison image, the second comparison image and the compressed data to the server, so that the server can restore the target frame image according to the compressed data to form a video stream; The device is also used to: extract the first frame image of the first time period, and extract the frame images of the first time period according to the first time interval to form a plurality of first comparison images, so that the target frame image is compressed according to the first comparison image; extract the first frame image of the second time period, and extract the frame images of the second time period according to the second time interval to form a plurality of second comparison images, so that the target frame image is compressed according to the first comparison image; the second time interval is smaller than the first time interval; The step of compressing the target frame image includes: dividing the target frame image into a target object image and a background image, and removing the background image; determining the position information, behavior information and trajectory prediction information of the target object in the acquisition area according to the position of the target object image in the target frame image, and forming compressed data; the step of judging whether the target frame image belongs to the first time period or the second time period includes: judging whether the target frame image is associated with object information; if not, identifying the target object in the target frame image, and when the object information of the target object is identified, associating the object information with the target frame image and the frame image after the target frame image, and dividing the target frame image into the second time period, if the object information of the target object is not identified, determining that the target frame image belongs to the first time period; if so, determining that the target frame image belongs to the second time period; the device is also used to: receive an object information clearing instruction issued by a server The object information clearing instruction is generated after the server receives the object information uploaded by the next acquisition device of the image acquisition device; according to the object information clearing instruction, the stored object information is cleared; the target frame image of the target object is obtained, including: receiving the associated acquisition angle of the associated acquisition device related to the image acquisition device issued by the server; determining the segmentation scheme of the frame image related to the target object according to the associated acquisition angle and the target acquisition angle of the image acquisition device, the segmentation scheme is determined according to the overlap of the acquisition area of ​​the image acquisition device and the associated acquisition device; segmenting the frame image related to the target object according to the segmentation scheme to obtain the target frame image; when uploading the acquisition data, adding the angle information of the image acquisition device to the acquisition data for uploading, so as to compress the acquisition image of the associated acquisition device, the acquisition data includes a first comparison image, a second comparison image and compressed data.

4. An electronic device, characterized in that: include: memory and at least one processor; The memory is used to store computer-executable instructions; The at least one processor is configured to execute computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 2.

Citation Information

Patent Citations

  • Video coding method, image transmission device and storage medium

    CN114302142A

  • Method of coding moving image, method of decoding moving image, moving image coding device, moving image decoding device, recording medium storing program for coding moving image, recording medium storing program for decoding moving image, and recording medium storing coded moving image data

    US20020075958A1

  • Image processing method and apparatus, electronic device and storage medium

    WO2022105459A1

  • KR20210038156A