Variable resolution cloud control video compression method, system, device, medium and product

By obtaining different types of areas and segmented images of video stream data in cloud control video processing, and selecting sub-images related to business requirements for compression, the problem of low video compression efficiency in the existing technology is solved and more efficient video data storage is achieved. .

CN118694959APending Publication Date: 2024-09-24TUS CLOUD CONTROL (BEIJING) TECH LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410787994.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing technology requires pre-calibration of the effective spatial area in cloud-controlled video processing, which is cumbersome and inefficient.

Method used

By obtaining the original video stream data, different types of data areas (masks) are obtained based on each frame of the image, and the image is divided into multiple sub-images. The sub-images related to the current business requirements are selected for compression, and a compressed video is generated. flow.

Benefits of technology

On the premise of preserving the current business requirements, the video compression efficiency is improved and the storage space of the original video stream data is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694959A
    Figure CN118694959A
Patent Text Reader

Abstract

The invention relates to the technical field of information, particularly provides a variable-resolution cloud control video compression method, and aims to solve the problem of how to improve the video compression efficiency on the premise of storing the current service demand content. In order to achieve the purpose, the variable-resolution cloud control video compression method comprises the steps of obtaining original video stream data, and based on each frame of image of the original video stream data, obtaining areas where different types of data are located in each frame of image; based on the mask of each frame of image and the corresponding image, obtaining a plurality of sub-images of each frame of image, selecting the sub-images related to the current service demand in the plurality of sub-images of each frame of image, performing compression according to a preset method to obtain each frame of compressed image, and based on each frame of compressed image, performing compression on the sub-images related to the current service demand. And obtaining the compressed video stream. Through the configuration mode, the video compression efficiency can be improved on the premise of storing the current service demand content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information technology, and in particular to a variable-resolution cloud-controlled video compression method, system, device, medium and product. Background Art

[0002] In the context of cloud-controlled autonomous driving, a large amount of video data is generated. Taking a typical video stream with a bit rate of 8Mbps as an example, about 100GB of video data (in mp4 format) is generated every day, which generally needs to be compressed. However, cloud-controlled video business applications mainly focus on the recognition of targets such as motor vehicles, non-motor vehicles, pedestrians, and traffic signs. The existence, movement trajectory, movement characteristics, and overall situation of the target can be analyzed in combination with the calibration information such as the position, orientation, and focal length of the camera. In actual cloud-controlled video processing, the key targets (current business demand parts) that are mainly concerned generally only occupy a small part of the overall picture, while a large amount of image content is background traffic environment information. In combination with the characteristics of cloud-controlled video business applications, this paper proposes a method for variable resolution compression of cloud-controlled video frames based on content focus.

[0003] In the prior art, the effective spatial area of ​​the point cloud data is pre-set, and then the point cloud data perceived by the lidar is processed through a multi-dimensional data space identification method (space segmentation method).

[0004] However, the inventors found that there are at least the following technical problems in the related art:

[0005] The existing technology requires pre-calibration of the effective space area, which is too cumbersome and inefficient. Summary of the invention

[0006] One purpose of the present application is to provide a variable resolution cloud-controlled video compression method, at least to solve the problem of how to improve the compression efficiency of the video while preserving the content required by the current business.

[0007] To achieve the above objectives, some embodiments of the present application provide the following aspects:

[0008] In a first aspect, some embodiments of the present application also provide a variable resolution cloud-controlled video compression method.

[0009] Get the original video stream data;

[0010] Based on each frame of the original video stream data, obtaining the area where different types of data are located in each frame of the image; wherein the area where the different types of data are located is recorded as a mask;

[0011] Based on the mask of each frame of image and the corresponding image, obtaining a plurality of sub-images of each frame of image;

[0012] Selecting a sub-image related to the current business demand from among the multiple sub-images of each frame of image and compressing the sub-image according to a preset method to obtain a compressed image of each frame;

[0013] Based on each frame of compressed image, a compressed video stream is obtained.

[0014] In a second aspect, some embodiments of the present application further provide a variable resolution cloud-controlled video compression system, the system comprising:

[0015] An original video stream data acquisition module, which is configured to acquire original video stream data;

[0016] An original video stream data extraction module is configured to obtain, based on each frame of the original video stream data, regions where different types of data are located in each frame of the original video stream data; wherein the regions where different types of data are located are recorded as masks;

[0017] An original video stream data segmentation module, configured to obtain a plurality of sub-images of each frame of image based on the mask and the corresponding image of each frame of image;

[0018] The original video stream data compression module is configured to select a sub-image related to the current business demand from among the multiple sub-images of each frame of the image and compress it according to a preset method to obtain a compressed image of each frame;

[0019] The compressed video stream acquisition module is configured to acquire the compressed video stream based on each frame of the compressed image.

[0020] In a third aspect, some embodiments of the present application further provide an electronic device, comprising: one or more processors; and a memory storing computer program instructions, wherein the computer program instructions, when executed, cause the processor to perform the steps of the method described above.

[0021] In a fourth aspect, some embodiments of the present application further provide a computer-readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the method as described above.

[0022] In a fifth aspect, some embodiments of the present application further provide a computer program product, comprising a computer program / instruction, which implements the steps of the method described above when executed by a processor.

[0023] Compared with the related art, in the solution provided in the embodiment of the present application, original video stream data is obtained, and based on each frame image of the original video stream data, areas where different types of data are located in the each frame image are obtained; wherein the areas where the different types of data are located are recorded as masks; based on the mask and the corresponding image of each frame image, multiple sub-images of each frame image are obtained, and sub-images related to current business needs among the multiple sub-images of each frame image are selected and compressed according to a preset method to obtain each frame of compressed image, and based on each frame of compressed image, a compressed video stream is obtained. Through the above configuration, the present application first obtains the original video stream data, and then based on each frame image of the original video stream data, obtains the area where different types of data are located in each frame image; wherein the area where the different types of data are located is recorded as a mask; then based on the mask and the corresponding image of each frame image, obtains multiple sub-images of each frame image, selects the sub-images of the multiple sub-images of each frame image that are only related to the current business needs and compresses them according to a preset method to obtain each frame of compressed image, each frame of compressed image occupies a smaller space than each frame image of the original video stream data, and obtains a compressed video stream based on each frame of compressed image, wherein the data in the compressed video stream are all data related to the current business needs. Therefore, the present application can improve the compression efficiency of the video under the premise of preserving the current business demand content. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0025] Figure 1 This is a schematic flow chart of the main steps of a variable resolution cloud-controlled video compression method according to an embodiment of the present application;

[0026] Figure 2 is a schematic diagram of a traffic participant as an identification result of a current business demand according to an implementation of an embodiment of the present application;

[0027] Figure 3 is a schematic diagram of a compression ratio variation curve according to an implementation of an embodiment of the present application;

[0028] Figure 4 is a schematic diagram of a part of a video frame of a directly compressed original image according to an implementation of an embodiment of the present application;

[0029] Figure 5is a schematic diagram of a part of an original video frame according to an implementation of an embodiment of the present application;

[0030] Figure 6 It is a schematic diagram of a portion of a video frame restored after compression processing using the method according to an implementation of an embodiment of the present application;

[0031] Figure 7 is a schematic diagram of a video frame of a directly compressed original image according to an implementation of an embodiment of the present application;

[0032] Figure 8 is a schematic diagram of a video frame of a directly compressed original image according to an implementation of an embodiment of the present application;

[0033] Fig. 9 is a schematic diagram of a video frame of a directly compressed original image according to an implementation of an embodiment of the present application;

[0034] Fig.10 It is a schematic diagram of the main components of a variable resolution cloud-controlled video compression system according to an embodiment of the application;

[0035] Fig.11 is a schematic diagram of an exemplary structure of a processor and a memory according to the present application;

[0036] Fig.12 is a schematic diagram of an exemplary structure of an electronic device according to the present application. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0038] Here we first explain some terms involved in this application.

[0039] Masking is a graphics processing technique that modifies certain parts of an image by setting a visible or transparent layer on the image. By drawing or filling a specific area on the mask, you can selectively hide, display, or modify specific parts of the image to achieve the desired effect. Masks are widely used in image editing software, video editing software, illustration design, and web design. They can help us create special effects, retouch photos, add text or graphics, or be used for layer fusion and masking operations.

[0040] Common mask types include layer masks, clipping masks, vector masks, and quick masks. Layer masks are the most common type, which hide or show part of a layer by creating a transparent or colored mask on the layer. You can hide or show a specific part by painting, erasing, or filling a specific area on the mask using a painting tool or selection tool.

[0041] See attached Figure 1 , Figure 1 FIG. 1 is a flow chart of the main steps of a variable resolution cloud-controlled video compression method according to an embodiment of the present application. Figure 1 As shown, a variable resolution cloud-controlled video compression method in an embodiment of the present application mainly includes the following steps S101 to S105.

[0042] Step S101: Acquire original video stream data.

[0043] In this embodiment, original video stream data that needs to be compressed is obtained.

[0044] Step S102: Based on each frame of the original video stream data, obtain the area where different types of data are located in each frame of the image.

[0045] In this embodiment, based on each frame of the original video stream data, the regions where different types of data are located in each frame of the image are obtained.

[0046] In one implementation, each frame of the original video stream data is input into a preset target detection model to obtain regions where different types of data are located in each frame of the image.

[0047] Step S103: based on the mask of each frame of image and the corresponding image, a plurality of sub-images of each frame of image are obtained.

[0048] In this embodiment, a plurality of sub-images of each frame of image are obtained according to the mask and the corresponding image of each frame of image.

[0049] In one implementation, the corresponding image is segmented according to the mask of each frame of image to obtain a plurality of sub-images of each frame of image.

[0050] Step S104: selecting a sub-image related to the current business demand from among the multiple sub-images of each frame of image and compressing the sub-image according to a preset method to obtain a compressed image of each frame.

[0051] In this embodiment, a sub-image related to the current business demand among the multiple sub-images of each frame of image is selected and compressed according to a preset method to obtain a compressed image of each frame.

[0052] It should also be noted that the selection of the sub-image related to the current business demand from the multiple sub-images of each frame image can be achieved by manually selecting the sub-image related to the current business demand from the multiple sub-images of each frame image, or by selecting the sub-image related to the current business demand from the multiple sub-images of each frame image through model recognition.

[0053] In one embodiment, see the attached Figure 2 , Figure 2 It is a schematic diagram of the identification result of a traffic participant as a current business demand according to an implementation of an embodiment of the present application.

[0054] In one implementation, the preset method may select a downsampling method, and the sampling coefficient may be set to 0.25.

[0055] Step S105: Based on each frame of compressed image, a compressed video stream is obtained.

[0056] In this embodiment, each frame of compressed image is arranged in time sequence to obtain a compressed video stream.

[0057] Based on the above steps S101 to S105, the original video stream data is obtained, and based on each frame image of the original video stream data, the areas where different types of data are located in the each frame image are obtained; wherein the areas where the different types of data are located are recorded as masks; based on the mask and the corresponding image of each frame image, multiple sub-images of each frame image are obtained, and the sub-images related to the current business needs among the multiple sub-images of each frame image are selected and compressed according to a preset method to obtain each frame of compressed image, and based on each frame of compressed image, a compressed video stream is obtained. Through the above configuration, the present application first obtains the original video stream data, and then based on each frame image of the original video stream data, obtains the area where different types of data are located in each frame image; wherein the area where the different types of data are located is recorded as a mask; then based on the mask and the corresponding image of each frame image, obtains multiple sub-images of each frame image, selects the sub-images of the multiple sub-images of each frame image that are only related to the current business needs and compresses them according to a preset method to obtain each frame of compressed image, each frame of compressed image occupies a smaller space than each frame image of the original video stream data, and obtains a compressed video stream based on each frame of compressed image, wherein the data in the compressed video stream are all data related to the current business needs. Therefore, the present application can improve the compression efficiency of the video under the premise of preserving the current business demand content.

[0058] It should also be noted that a lower compression ratio or no compression is used for sub-images related to current business needs, and conventional image compression methods are used for other areas according to the business needs for image compression. In this way, the compression efficiency of the video can be improved while preserving the content required by the current business.

[0059] In one implementation, after step S105, steps S106 to S107 may also be included.

[0060] Step S106: Obtain the mask of each frame of the image and the compressed video stream.

[0061] In this embodiment, the mask of each frame of image and the compressed video stream are obtained.

[0062] Step S107: based on the mask of each frame of the image and the compressed video stream, obtain the decompressed video stream.

[0063] In this embodiment, the corresponding sub-images in the compressed video stream are spliced ​​according to the mask of each frame of the image to obtain the spliced ​​image of each frame, and the spliced ​​images of each frame are arranged in a preset order (time sequence) to obtain the decompressed video stream.

[0064] It should also be noted that, see the attached Figure 3 , Figure 3 is a schematic diagram of a compression rate variation curve according to an implementation of an embodiment of the present application, such as Figure 3 As shown in the figure, the method is used to compress 1712 frames of video data with a total length of about 1 minute, and the overall compression rate is about 31.22%. This method is related to the content of the video, so it will fluctuate to a certain extent over time. From the results of the sample data processed by this method, the vehicle target information required by the current business is well preserved, and the license plate information (attached Figure 7 ) can be identified (and the original image (attached Figure 5 ) are consistent).

[0065] It should also be noted that, see the attached Figure 4 , Figure 4 is a schematic diagram of a local portion of a video frame of a directly compressed original image according to an implementation of an embodiment of the present application, such as Figure 4 As shown in FIG. 1 , the video frame of the directly compressed original image is partially blurred.

[0066] It should also be noted that the comparison before and after compression is shown in the attached Figure 7 , Attachment Figure 8 and attached Fig. 9 , Figure 7is a schematic diagram of a video frame of a directly compressed original image according to an implementation of an embodiment of the present application; Figure 8 is a schematic diagram of a video frame of a directly compressed original image according to an implementation of an embodiment of the present application; Fig. 9 is a schematic diagram of a video frame of a directly compressed original image according to an implementation of an embodiment of the present application; as shown in the attached Figure 7 , Attachment Figure 8 and attached Fig. 9 It can be seen that according to the results of processing using this method, the vehicle target information required by the current business is well preserved.

[0067] The step division of the above methods is only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.

[0068] In addition, some embodiments of the present application also provide a variable resolution cloud-controlled video compression system.

[0069] See attached Fig.10 , Fig.10 1 is a main structural block diagram of variable resolution cloud-controlled video compression according to an embodiment of the present application. Fig.10 As shown, the variable resolution cloud-controlled video compression in the embodiment of the present application mainly includes an original video stream data acquisition module 11, an original video stream data extraction module 12, an original video stream data segmentation module 13, an original video stream data compression module 14, and a compressed video stream acquisition module 15. In some embodiments, one or more of the original video stream data acquisition module 11, the original video stream data extraction module 12, the original video stream data segmentation module 13, the original video stream data compression module 14, and the compressed video stream acquisition module 15 can be combined into one module. In some embodiments, the original video stream data acquisition module 11 can be configured to acquire original video stream data; the original video stream data extraction module 12 can be configured to acquire the areas where different types of data are located in each frame image of the original video stream data based on each frame image; the original video stream data segmentation module 13 can be configured to acquire multiple sub-images of each frame image based on the mask and the corresponding image of each frame image; the original video stream data compression module 14 can be configured to select the sub-image related to the current business demand from the multiple sub-images of each frame image and compress it according to a preset method to obtain each frame of compressed image; the compressed video stream acquisition module 15 can be configured to acquire the compressed video stream based on each frame of compressed image.

[0070] It is worth mentioning that all modules involved in this embodiment are logic modules. In practical applications, a logic unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of this application, this embodiment does not introduce units that are not closely related to solving the technical problems proposed by this application, but this does not mean that there are no other units in this embodiment.

[0071] In addition, some embodiments of the present application also provide an electronic device. The electronic device may be a digital computer in various forms, such as a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, etc. The electronic device may also be a mobile device in various forms, such as a personal digital processing, a cellular phone, a smart phone, a wearable device, and other similar computing devices.

[0072] The electronic device includes: one or more processors; and a memory storing computer program instructions, wherein when the computer program instructions are executed, the processor executes the steps of the method provided in any one or more of the above embodiments. Fig.11 An exemplary structural diagram of the electronic device is disclosed. Fig.11 As shown, the electronic device includes: one or more processors 1101, memory 1102, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Among them, the components shown in this article, their connections and relationships, and their functions are only used as examples, and are not intended to limit the implementation of the present application described and / or required herein.

[0073] The electronic device may further include: an input device 1103 and an output device 1104. The processor 1101, the memory 1102, the input device 1103 and the output device 1104 may be connected via a bus or other means. Fig.12 The example of connecting through bus is taken in the following.

[0074] The input device 1103 can receive input digital or character information, and generate key signal input related to the user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 1104 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.

[0075] To provide interaction with a user, the electronic device may be a computer. The computer has: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball), through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0076] In the embodiments of the present application, a computer program / instruction is stored on a computer-readable medium, and when the computer program / instruction is executed by a processor, the steps of the method provided by any one or more of the above embodiments are implemented. The computer-readable medium may be included in the electronic device described in the above embodiments; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more computer-readable instructions.

[0077] The memory 1102 can be used as a non-transient computer-readable storage medium, which can be used to store non-transient software programs, non-transient computer executable programs and modules. The processor 1101 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 1102, so as to implement the program instructions / modules corresponding to the method provided by any one or more embodiments in the embodiments of the present application.

[0078] The memory 1102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1102 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 1102 may optionally include a memory remotely arranged relative to the processor 1101, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0079] It should be noted that the computer-readable medium described in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.

[0080] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, modules of programs 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, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

[0081] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet).

[0082] In the above-described embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. For example, it can be implemented by using an application specific integrated circuit (ASIC), a general-purpose computer or any other similar hardware device. In certain embodiments, the software program of the present application can be executed by a processor to implement the above steps or functions. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented by hardware, for example, as a circuit that cooperates with a processor to perform each step or function.

[0083] The computer program product provided in the embodiment of the present application includes one or more computer programs / instructions, and when the computer program / instructions are executed by the processor, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive so lid state di sk (SSD)), etc.

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

[0085] The scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes that fall within the meaning and scope of the equivalent elements of the claims are included in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim may also be implemented by one unit or device through software or hardware. The words "first", "second", etc. are only used to distinguish the description, and do not indicate any particular order, nor can they be understood as indicating or implying relative importance.

[0086] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily mention changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims, and the above embodiments should be regarded as exemplary and non-restrictive.

Claims

1. A variable resolution cloud-controlled video compression method, characterized in that: The method comprises: Get the original video stream data; Based on each frame of the original video stream data, obtaining the area where different types of data are located in each frame of the image; wherein the area where the different types of data are located is recorded as a mask; Based on the mask of each frame of image and the corresponding image, obtaining a plurality of sub-images of each frame of image; Selecting a sub-image related to the current business demand from among the multiple sub-images of each frame of image and compressing the sub-image according to a preset method to obtain a compressed image of each frame; Based on each frame of compressed image, compressed video stream data is obtained.

2. The variable resolution cloud-controlled video compression method according to claim 1, characterized in that: The acquiring, based on each frame of the original video stream data, regions where different types of data are located in each frame of the original video stream data, includes: Each frame image of the original video stream data is input into a preset target detection model to obtain the area where different types of data are located in each frame image.

3. The variable resolution cloud-controlled video compression method according to claim 1, characterized in that: Based on the mask of each frame of image and the corresponding image, a plurality of sub-images of each frame of image are obtained, including: The corresponding image is segmented according to the mask of each frame of image to obtain a plurality of sub-images of each frame of image.

4. The variable resolution cloud-controlled video compression method according to claim 1, characterized in that: After obtaining compressed video stream data based on each compressed image frame, the method further includes: Obtaining the mask of each frame of image and the compressed video stream data; Based on the mask of each frame of image and the compressed video stream data, a decompressed video stream is obtained.

5. The variable resolution cloud-controlled video compression method according to claim 4, characterized in that: The step of obtaining the decompressed video stream based on the mask of each frame of the image and the compressed video stream data comprises: Splicing the corresponding sub-images in the compressed video stream data according to the mask of each frame of image to obtain a spliced ​​image of each frame; Arrange the stitched images of each frame in a preset order to obtain the decompressed video stream.

6. The variable resolution cloud-controlled video compression method according to claim 1, characterized in that: The method further comprises: The preset method is a downsampling method.

7. A variable resolution cloud-controlled video compression system, characterized in that: The system comprises: An original video stream data acquisition module, which is configured to acquire original video stream data; An original video stream data extraction module is configured to obtain, based on each frame of the original video stream data, regions where different types of data are located in each frame of the original video stream data; wherein the regions where different types of data are located are recorded as masks; An original video stream data segmentation module, configured to obtain a plurality of sub-images of each frame of image based on the mask and the corresponding image of each frame of image; The original video stream data compression module is configured to select a sub-image related to the current business demand from among the multiple sub-images of each frame of the image and compress it according to a preset method to obtain a compressed image of each frame; The compressed video stream data acquisition module is configured to acquire the compressed video stream data based on each frame of the compressed image.

8. An electronic device, characterized in that: The electronic device comprises: one or more processors; and A memory storing computer program instructions, which, when executed, cause the processor to perform the steps of the method as claimed in any one of claims 1 to 6.

9. A computer readable medium having a computer program / instructions stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Method for improving compression performance through cloud detection on remote sensing satellite

    CN119545029A