WO2018120519A1 - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
WO2018120519A1
WO2018120519A1 PCT/CN2017/080645 CN2017080645W WO2018120519A1 WO 2018120519 A1 WO2018120519 A1 WO 2018120519A1 CN 2017080645 W CN2017080645 W CN 2017080645W WO 2018120519 A1 WO2018120519 A1 WO 2018120519A1
Authority
WO
WIPO (PCT)
Prior art keywords
region
resolution
area
image
video image
Prior art date
Application number
PCT/CN2017/080645
Other languages
French (fr)
Chinese (zh)
Inventor
王鹏
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201780062040.0A priority Critical patent/CN109804409A/en
Publication of WO2018120519A1 publication Critical patent/WO2018120519A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234345Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements the reformatting operation being performed only on part of the stream, e.g. a region of the image or a time segment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/4728End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for selecting a Region Of Interest [ROI], e.g. for requesting a higher resolution version of a selected region

Definitions

  • the present invention relates to the field of image processing, and more particularly to a method and apparatus for image processing.
  • the Content Delivery Network is a network built on the existing transport network.
  • the CDN relies on the edge servers deployed in various places, through the load balancing, content distribution, scheduling and other functional modules of the central platform. Users get the content they need, reduce network congestion, and improve user access response speed and hit rate.
  • the technical architecture for transmitting video by CDN is as shown in FIG. 1. First, the network server uploads the video file to the file server, and then the file server distributes the video file to multiple content distribution networks, and finally, the user passes the playback terminal. Get or watch videos from their respective distribution networks.
  • the CDN method solves the problem of transmission and distribution of video, when the amount of data of the video is too large, in the case where the transmission bandwidth is small or limited, the user may have problems such as video jamming during the process of watching the video. Users can't get a better viewing experience.
  • Embodiments of the present invention provide a method and apparatus for image processing, which can process a video image of a target video with a limited transmission bandwidth, and reduce the data amount of the target video while providing a better viewing experience for the user, which is more useful.
  • the video data is transmitted to the user's playback terminal.
  • a first aspect of the embodiments of the present invention provides a method for image processing, including:
  • the processed target video image is sent to the playback terminal.
  • the hotspot area of the target video image is a focused area of the user's line of sight, that is, a certain area that the user pays attention to or is interested in.
  • the hotspot area may be, for example, a ball in a ball game, specifically, soccer, volleyball, basketball, etc. It can be a singer in a concert, specifically a singer's face, a participant in a meeting, and so on.
  • the target video image area may be divided into the first area and the second area according to the hotspot area, so that the hotspot area is in the first area, and then the first area is processed at the first resolution to be gradual
  • the resolution processes the second area, and finally sends the processed target video image to the user's playing terminal, wherein the first resolution is greater than all resolutions of the second area, and the resolution of the second area follows the hotspot area The distance is increased, and the resolution is reduced.
  • the resolution of the hotspot area is higher by processing the video image, and the resolution of other areas is lower, and the data amount of the processed video image is smaller than
  • the amount of data of the original video image, the useful video data, that is, the video data that the user wants to watch, is transmitted to the user's playing terminal to ensure the user's viewing experience and save bandwidth costs.
  • the method before the processing, by the first resolution, the first region of the target video image, the method further includes: determining a hotspot region of the target video image; Determining a first region and the second region of the target video image.
  • the determining, by the hotspot region, the first region of the target video image includes: determining a center of the hotspot region; An area having a center of the center and a radius of the first predetermined distance is determined as the first area of the target video image.
  • the determining, by the hotspot region, the first region of the target video image includes: a minimum of the hotspot region to be included
  • the regular graphics area is determined to be the first area of the target video image.
  • the minimum regular pattern area includes, but is not limited to, a circular area, a rectangular area, and a diamond shaped area.
  • the method before the processing, by the first resolution, the first area of the target video image, the method further includes: determining a transmission bandwidth with the play terminal; The area size of the first area, the area size of the second area, and the transmission bandwidth determine the resolution of the first resolution and the gradation.
  • the transmission bandwidth between the target and the playback terminal may be determined according to the target image acquisition request sent by the user through the playback terminal, for example, the bandwidth data is carried in the target image acquisition request; and the playback terminal may be determined according to the access bandwidth of the playback terminal.
  • the transmission bandwidth of the terminal, wherein the access bandwidth of the terminal is the actual network bandwidth of the user; and the transmission bandwidth between the terminal and the playback terminal may also be determined according to the effective bandwidth that the transmission network can provide.
  • the resolution of the gradation includes determining a resolution of a target image position in the second region according to a distance between a target image position in the second region and a center of the hot spot region.
  • the determining, according to a distance between a target image location in the second region and a center of the hotspot region, The resolution of the target image position in the second region includes: obtaining a distance between the target image position in the second region and a center of the hot spot region; determining a target image position in the second region according to a gradation function
  • the resolution wherein the gradient function is a function that characterizes a correspondence between the resolution and the distance.
  • the distance may be in units of centimeters, inches, pixels, and the like.
  • the second area includes a third area and a fourth area, where the third area and the hotspot area a shortest distance between the centers is smaller than a shortest distance between the fourth region and a center of the hotspot region; the determining is based on a distance between a target image location in the second region and a center of the hotspot region
  • the resolution of the target image position in the second region includes: acquiring a distance between a target image position in the third region and a center of the hot spot region; determining a target in the third region according to a gradation function a resolution of an image position, wherein the gradient function is a function characterizing a correspondence between the resolution and the distance; determining a second resolution as a resolution of a target image position in the fourth region Wherein the second resolution is less than or equal to a minimum resolution of a target image location in the third region, the second resolution being a fixed resolution.
  • the second resolution is 1/N of the first resolution, and N is an integer greater than 1;
  • the second resolution is the target in the third region 1/P of the minimum resolution of the target image position, P is an integer greater than or equal to 1.
  • the gradation function may be a parabolic function, an elliptic function, or a one-time decreasing function, and the like, which satisfies a gradual change function of a human visual change rule.
  • the second area includes K sub-areas
  • the resolution of the gradation is a resolution that varies discretely
  • the resolution corresponding to the sub-region is a fixed resolution, wherein the shortest distance between the (K-1)th sub-region and the center of the hotspot region is smaller than the shortest distance between the K-th sub-region and the center of the hotspot region
  • K is a positive integer greater than or equal to 2
  • determining the resolution of the target image position in the second region according to the distance between the target image position in the second region and the center of the hotspot region includes: Obtaining a distance between a target image position in the second area and a center of the hot spot area; determining a sub-area where the target image position is located according to the distance; and corresponding to the sub-area according to the resolution
  • the relationship determines the resolution of the target image location.
  • the shape of the sub-region may be a regular shape such as
  • the corresponding relationship between the resolution and the sub-region includes: a first sub-region of the target video image
  • the corresponding resolution is 1/L of the first resolution or a difference between the first resolution and the first preset value, where L is an integer greater than 1.
  • the corresponding relationship between the resolution and the sub-region further includes: a Kth of the target video image
  • the resolution corresponding to the sub-region is 1/M of the resolution corresponding to the (K-1)th sub-region, and M is an integer greater than 1; or the resolution corresponding to the K-th sub-region of the target video image is The difference between the resolution corresponding to the (K-1)th sub-region of the target video image and the second preset value.
  • the method further includes: determining a target bandwidth required for transmitting the target video image and a transmission bandwidth with the playing terminal; In the case of being greater than the transmission bandwidth, the step of processing the first region of the target video image at the first resolution is performed.
  • the target video image is an original target video image, that is, a target video image before processing.
  • the resolution of the gradation comprises a resolution that varies continuously or a resolution that varies discretely.
  • a second aspect of the embodiments of the present invention provides an apparatus for image processing, including:
  • a first area processing module configured to process, in a first resolution, a first area of the target video image, where the first area includes a hotspot area of the target video image;
  • a second area processing module configured to process the second area of the target video image with a gradual resolution, the resolution of the gradation being smaller than the first resolution, wherein the distance in the second area is The higher the resolution corresponding to the image at the position closer to the hot spot region, the second region is located outside the first region, and the second region and the first region constitute the target video image;
  • a sending module configured to send the processed target video image to the playing terminal.
  • the apparatus for image processing provided by the second aspect of the present invention further includes other program modules for performing the image processing method provided by the first aspect of the embodiments of the present invention, and details are not described herein again.
  • a third aspect of the embodiments of the present invention provides an apparatus for image processing, including a processor, a memory, and a communication interface, wherein the processor, the memory, and the communication interface are connected to each other, wherein the communication interface is configured to receive And transmitting data for storing an application code supporting the image processing apparatus for performing the above method, the processor being configured to perform the various methods of the first aspect described above.
  • a fourth aspect of the embodiments of the present invention provides a computer storage medium for storing computer program instructions for use in the apparatus for image processing described above, comprising a program for performing the above first aspect.
  • a fifth aspect of the embodiments of the present invention provides a computer program for performing the various methods provided by the above first aspect.
  • FIG. 1 is a technical architecture diagram of content distribution using a CDN in the prior art
  • FIG. 2 is a schematic structural diagram of a system for performing live video broadcast according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for image processing according to an embodiment of the present invention.
  • 4a is a target video image of an undistinguished hotspot area and a non-hotspot area provided by an embodiment of the present invention
  • FIG. 4b is a target video image after distinguishing a hot spot area according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a relationship between a hot spot area, a first area, and a second area according to an embodiment of the present invention
  • FIG. 5b is a schematic diagram of another hotspot area, a first area, and a second area according to an embodiment of the present invention.
  • FIG. 5c is a schematic diagram of another relationship between a hot spot area, a first area, and a second area according to an embodiment of the present invention.
  • FIG. 6 is a distribution diagram of a first area and a second area according to an embodiment of the present invention.
  • FIG. 7a is still another distribution diagram of a first area and a second area according to an embodiment of the present invention.
  • FIG. 7b is still another distribution diagram of the first area and the second area provided by the embodiment of the present invention.
  • FIG. 8a is still another distribution diagram of a first area and a second area according to an embodiment of the present invention.
  • FIG. 8b is still another distribution diagram of the first area and the second area provided by the embodiment of the present invention.
  • FIG. 9a is a target video image before processing according to an embodiment of the present invention.
  • FIG. 9b is a processed target video image according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of an apparatus for image processing according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of another apparatus for image processing according to an embodiment of the present invention.
  • a system structure for performing live video broadcast includes a video collection end 101 and a video splicing server 102.
  • the video collection end 101 is configured to capture various initial video images, such as live video images, and send the collected video images to the video splicing server 102.
  • the video capture end 101 can be, for example, a camera, a camera, etc.; the video splicing server 102 is used to capture the video image collected by the video capture end 101.
  • the transmission distribution network 104 includes a plurality of cache servers/streaming servers, and the transmission distribution network 104 distributes the target video to the respective playback terminals 105.
  • the transmission distribution network 104 can be, for example, a CDN, and the playback terminal can be, for example, a mobile phone or a virtual reality. (English: Virtual Reality, VR) Devices, tablets, etc. that can be used to play video.
  • the video may be a VR video or a normal video.
  • the system structure shown in FIG. 2 can transmit the original target video to the user's play terminal.
  • the image processing method provided by the embodiment of the present invention can be implemented, where the video stitching server can be executed.
  • the step of processing the original target video image, wherein the original target video image may be any one of the target video images, the step specifically comprising: performing the first region of the target video image at the first resolution.
  • Processing processing the second area of the target video image with a gradual resolution, or performing the processing of the target video image by a cache server/streaming server in the transmission distribution network, and also in the system Adding an image processing node to the structure to perform the step of processing the target video image, for example, adding an image processing server to perform processing on the target video image in the transmission distribution network; and then processing by the transmission distribution network After the target video image is sent to the user's end of play
  • the terminal displays the video data useful to the user.
  • image processing method provided by the embodiment of the present invention may also be performed by two or more servers in the foregoing system structure, and no further enumeration is made herein.
  • the system structure shown in FIG. 2 may also be a schematic structural diagram of a system for performing video on demand.
  • the video splicing server 102 sends the target video to the network server 103, and the network server 103 After the target video is distributed to the plurality of transmission distribution networks 104, the target video may be cached or stored in the cache server/streaming server for a period of time, and when the user needs to view the target video, then the playback terminal is used to the network server.
  • the network server Initiating a target video acquisition request, and then the network server returns the address of the cache server/streaming server closest to the playing terminal to the playing terminal, and the playing terminal accesses the cache server/streaming server closest to the playing terminal according to the address to view the target.
  • the step of processing the target video image may be performed by a cache server/streaming server in the transmission distribution network, or an image processing server may be added to the transmission distribution network to perform the target video image. The steps of processing.
  • FIG. 3 is a schematic flowchart diagram of a method for image processing according to an embodiment of the present invention.
  • the method of the present invention may be implemented on the server mentioned above, where the server specifically includes a video splicing server and a cache server/flow.
  • At least one of a media server and an image processing server, the method including but not limited to the following steps:
  • Step S201 processing a first area of the target video image with a first resolution, where the first area includes a hotspot area of the target video image.
  • the hotspot area is the focus area of the user's line of sight, that is, compared with other areas of the target video image, the hotspot area is an area where the user is more concerned or interested, and the area that the user desires to see more clearly.
  • a hotspot area of the target video image may also be determined and according to the hotspot The region determines a first region and a second region of the target video image.
  • the target video image is a video image of a soccer game live video
  • the area where the soccer ball is located may be determined as a hot spot area or a face area of a certain player may be determined as a hot spot area
  • the target video image is sung
  • a video image of a live video can be used to determine the area where the singer's face is located as a hotspot area or the area where the singer's body is located as a hotspot area
  • the target video image is a large conference, such as a target
  • the video image is a video image of a national conference, and the face of the speaker or the area where the body is located can be determined as the hotspot area.
  • FIG. 4a is a target video image that does not distinguish between a hot spot area and a non-hot spot area
  • FIG. 4b is a target video image after distinguishing the hot spot area
  • FIG. 4a is a video image of a basketball game video.
  • the image there are images such as players, stadiums, basketball baskets, basketballs, etc.
  • the image images defined by the white areas that is, the image images corresponding to the basketballs are hotspots
  • the image images of the black areas are corresponding to the areas outside the basketball.
  • the image image is a non-hot spot area.
  • the hot spot region of the target video image may be determined according to the image-based target recognition method, wherein the image-based target recognition method may be a feature-based target detection method or a texture-based and boundary feature-based target Detection method.
  • the image-based target recognition method may be a feature-based target detection method or a texture-based and boundary feature-based target Detection method.
  • a Haar-like feature can be adopted, and the Haar-like feature is a simple rectangular feature, which is named after a Haar wavelet (English: Haar wavelet).
  • a grayscale change that reflects the local features of the detected object For example, by extracting the Haar-like feature of the to-be-identified region of the target video image, wherein the to-be-identified region includes the hotspot region and the non-hotspot region, and then obtaining the feature values of the to-be-identified region, and then using the AdaBoost (English: Adaptive Boosting) algorithm to perform these features. The values are categorized to determine the hotspot area.
  • AdaBoost English: Adaptive Boosting
  • the features of the pixel points are extracted by using a Harris operator, a Forstner operator, a Moravic operator, etc., and then clustering operations are performed to form different categories. Characteristics.
  • the center of the first area may coincide with the center of the hot spot area, so that the hot spot area is located at an intermediate position of the first area.
  • the first area and the second area may be determined in at least two manners: 1) the center of the hot spot area may be determined, and the center is to be Determining, as a first region of the target video image, a region having a radius of a center and a first predetermined distance, wherein the first predetermined distance radius is greater than a maximum distance between a center of the hot spot region and an edge of the hot spot region, and correspondingly The area outside the first area is the second area; 2) the minimum regular graphic area including the hot spot area may be determined as the first area of the target video image, wherein the minimum rule graphic may be a circle or a rectangle A shape area such as a triangle, a diamond, or the like, and correspondingly, a region outside the first area is the second area.
  • the unit of the first preset distance may be an image distance unit of centimeters, inches, pixels, etc., and the first preset distance may be set according to the length and width of the total area of the target video image, for example, the length of the total area is 1 /2, 1/3, etc.; may also be set according to the longest distance between the center of the hot spot area and the edge of the hot spot area, for example, the sum of the longest distance and a preset threshold, specifically, a preset threshold, for example The distance is 1 unit.
  • the size of the first area may be a fixed setting, or may be set by the user, for example, the user will
  • the first predetermined distance is set to 2 cm, and it is determined that the first area is a circular area with a center of the hot spot area as a center and a radius of 2 cm, and the area of the first area is 4 ⁇ square centimeter.
  • the hot spot area in addition to determining the first area and the second area by using the above two manners, the hot spot area may be directly determined as the first area.
  • the area outside the first area is the second area.
  • FIG. 5a is a schematic diagram of a relationship between a hot spot area, a first area, and a second area according to an embodiment of the present invention.
  • the first area is centered on the center of the hot spot area, and the first preset distance is a circular area of a radius, the hotspot area is in the first area, and the area outside the first area is the second area;
  • FIG. 5b is another hotspot area, the first area, and the second area provided by the embodiment of the present invention.
  • FIG. 5b A schematic diagram of the relationship, in FIG. 5b, the first area is the smallest square area including the hotspot area, the center of the first area and the center of the hot spot area coincide, and the area outside the first area is the second area;
  • FIG. 5c is provided by the embodiment of the present invention.
  • the transmission bandwidth between the playback terminal and the target bandwidth required for transmitting the target video image may be determined. If the target bandwidth is greater than the transmission bandwidth, step S201 is performed; and the target bandwidth is smaller than the transmission. In the case of bandwidth, the target video image is not processed, and the unprocessed/original target video image is directly transmitted to the playback terminal.
  • the transmission bandwidth can be determined in at least the following ways:
  • the access bandwidth of the playback terminal is determined as the transmission bandwidth, that is, the actual bandwidth of the user is determined as the transmission bandwidth;
  • the bandwidth resource of the server is not limited, the bandwidth indication sent by the user through the playing terminal is received, and the transmission bandwidth is determined according to the bandwidth indication, that is, the bandwidth specified by the user is determined as the transmission bandwidth; for example, the current connection of the user is assumed.
  • the inbound bandwidth is 20M, but the user does not want all the bandwidth to be used to transmit the target video image. The user only wants to use 10M bandwidth to transmit the target video image.
  • the user can set the playback bandwidth to 10M on the playable terminal, and the playback terminal will bandwidth.
  • the indication is set to 10M, and after receiving the bandwidth indication, the server determines 10M as the transmission bandwidth.
  • the bandwidth resource of the server is limited, the current free bandwidth of the server is determined according to the bandwidth resource allocation of the server, and then part of the bandwidth of the idle bandwidth is determined to be between the playback terminal and the terminal according to a certain bandwidth allocation rule. Transmission bandwidth, in which case the transmission bandwidth is less than or equal to the access bandwidth of the playback terminal.
  • Step S202 processing a second region of the target video image with a gradient resolution, the resolution of the gradient being smaller than the first resolution, wherein the second region is closer to the hotspot region The higher the resolution corresponding to the image at the location, the second region is outside the first region, and the second region and the first region constitute the target video image.
  • the resolution of the first resolution and the gradation may be determined according to a transmission bandwidth with the playback terminal.
  • the first resolution may be determined according to the transmission bandwidth, the size of the area of the first area, and the size of the area of the second area, according to the location between the target image location in the second area and the center of the hotspot area. The correspondence between the distance and the resolution determines the resolution of the target image position.
  • the size of the area of the first area and the second area may be measured by area or by area The total number of pixels is measured.
  • the resolution in the second region satisfies the condition that the closer the image position is to the hot spot region, the higher the resolution is, the at least the following resolution change rules may be set for the second region: 1) The resolution of the two regions changes continuously, and there is a function correspondence between the resolution and the distance, wherein the distance refers to the distance between the target image position of the second region and the center of the hot spot region, and the distance is larger. The smaller the function value is; 2) the resolution of the second region varies discretely, wherein the second region is divided into a plurality of sub-regions, the resolution in the sub-region is fixed, and the different sub-regions correspond to different resolutions. The farther the sub-area from the center of the hot spot area, the lower the corresponding resolution; 3) the resolution of the second area changes continuously in a part of the second area, and the other part of the second area is discrete Variety.
  • the gradation function between the resolution and the distance may be a functional relationship such as a parabolic function, an elliptic function, or a decremental function that conforms to changes in the human visual.
  • the resolution of the first resolution and the gradation determined in the following scenarios refers to the resolution per unit area. If it is necessary to determine the total resolution of a certain area of the target video image, the resolution on a unit area is determined. The rate is multiplied by the corresponding area to get the total resolution of a certain area.
  • the center of the first area is the center of the hotspot area.
  • the center of the first area may not be consistent with the center of the hotspot area.
  • Implementation scenario 1 The resolution of the second region changes continuously, wherein there is a function correspondence between the resolution and the distance.
  • the distance can be used as the argument of the gradual function
  • the resolution is used as the dependent variable of the gradual function
  • the dependent variable and the independent variable satisfy the decreasing correspondence, that is, the dependent variable increases with the independent variable. If you decrease, you can use the decreasing function as the gradient function between resolution and distance.
  • the size of the first area may be first determined, and the maximum radius of the second area is determined, where the maximum radius refers to the maximum distance between the center of the hot spot area and the edge of the second area, and then the transmission bandwidth is determined according to the transmission bandwidth.
  • the resolution determines the first resolution according to the principle that the total number of pixels is consistent and the gradient function, and determines the resolution at each distance according to the gradient function of the distance and the resolution, wherein the total number of pixels is consistent, the pointer is the same as the size of the region.
  • the target video image, the target video image before the resolution change contains a total amount of pixels equal to the total number of pixels included in the target video image after the resolution change.
  • the resolution R0 described in the embodiment refers to the resolution corresponding to the transmission bandwidth, that is, the transmission bandwidth can support the resolution of the transmitted target video image per unit area when the playback is not stuck, and at the same time,
  • R1, R0, and R2 all refer to the resolution per unit area.
  • the second area is placed in a ring composed of two concentric circles centered on the center of the hot spot area, as shown in FIG. 6, in which case the radius of the circle 1 is the center of the hot spot area and the second area.
  • the circle 2 is the smallest circle containing the second region
  • the radius d2 of the circle 2 is the maximum distance between the center of the hot spot region and the boundary of the second region, according to the total pixel point
  • the principle of quantity constant in this case, the principle that the total number of pixels is constant is that the sum of the total number of pixels of circle 1 and the total number of pixels of the ring is equal to the total number of pixels of circle 2, and the formula is obtained:
  • R1 (R0*d2 2 +1/3d1 3 -2/3d2 3 -d2 2 d1)/d2 2
  • d1, d2 may be obtained after determining the first area and the second area.
  • Implementation scenario 2 the resolution of the second region varies discretely, and the second region has K sub-regions, wherein the shortest distance between the (K-1)th sub-region and the center of the hotspot region is smaller than the K-th sub-region The shortest distance from the center of the hot spot area, that is, visually, the Kth sub-area is outside of the (K-1)th sub-area or surrounds the (K-1)th sub-area.
  • the resolutions of the respective sub-regions may be correlated, so that the resolution between the sub-regions is regular.
  • the change for example, the resolution of the (K-1)th sub-region of the Kth sub-region is 1/M, M is an integer greater than 1, and the resolution of the K-th sub-region is the resolution of the (K-1)th sub-region.
  • the rate is subtracted from the second preset value; then the resolution of the sub-region closest to the center of the hot spot region among the K sub-regions is determined, that is, the resolution of the first sub-region is determined.
  • the resolution of the first sub-region is 1/L of the first resolution or the first resolution minus the first preset value, where L is an integer greater than 1.
  • L and M may be set equal or different; the first preset value and the second preset value may be set equal to each other, or may be unequal.
  • the resolutions of the sub-areas may not be associated, that is, the resolution of each sub-area is irregular, and each sub-area may be associated with the first resolution.
  • the resolution of the first sub-region is the first resolution minus the first preset value
  • the resolution of the second sub-region is the second resolution minus the second preset value
  • the resolution of the third sub-region is The resolution of the first resolution is 1/L...the Kth sub-region is the first resolution 1/M, here only as an example, in addition, each sub-region needs to satisfy the condition that "the farther away from the hot spot region, the lower the corresponding resolution is.”
  • the first resolution may also be replaced with a preset fixed resolution smaller than the first resolution.
  • the resolution relationship between the above two sub-regions and the resolution of each region are determined by referring to the respective sub-regions of the first region and the second region.
  • FIG. 7a is another distribution diagram of the first area and the second area, wherein the first area has a circular shape with a radius of d1; A resolution is R1, the second area is a gray area outside the first area, and the second area has three sub-areas, and the first sub-area is closest to the first area, and is a ring having an inner ring radius of d1.
  • the ring radius is d2; the second sub-region is adjacent to the first sub-region, and is also a ring, the inner ring radius is d2, the outer ring radius is d3; the third sub-region is outside the second sub-region, the target video image is
  • the area is S, and the resolution corresponding to the transmission bandwidth is R0.
  • the resolution of the first sub-region is 1/L of the first resolution and the resolution of the K-th sub-region is 1/M of the resolution of the (K-1)th sub-region
  • both L and M are assumed
  • the value is 2, according to the principle that the total number of pixels is constant, in this case, the principle that the total number of pixels does not change is that the sum of the total number of pixels of the first region and the second region is equal to the total pixel of the video image.
  • the amount, the sum of the total number of pixels in each sub-area is equal to the total number of pixels in the second area, and the formula is obtained:
  • R1 (R0*S)/(1/2 ⁇ d1 2 +1/4 ⁇ d2 2 +1/8 ⁇ d3 2 +1/8S)
  • the first resolution R1 can be determined according to R0, d1, d2, d3, and S, and the resolution of each sub-area is determined according to the relationship between each sub-area and R1, and the resolution of the first sub-area is 1/1 2R1, the resolution of the second sub-area is 1/4R1, and the resolution of the third sub-area is 1/8R1.
  • the resolution of the first sub-region is the first resolution minus the first preset value
  • the resolution of the K-th sub-region is the resolution of the (K-1)th sub-region minus the second preset value.
  • the principle that the total number of pixel points does not change is the pixel points of the first region and the second region.
  • the sum of the total amounts is equal to the total number of pixels of the video image
  • the sum of the total number of pixels of each sub-area is equal to the total number of pixels of the second area
  • ( ⁇ d1 2 )*R1 is the total number of pixel points in the first region
  • ( ⁇ d2 2 - ⁇ d1 2 )*(R1-r) is the total number of pixel points in the first sub-region
  • ( ⁇ d3 2 - ⁇ d2 2 )* (R1-2r) is the total number of pixel points in the second sub-region
  • (S- ⁇ d3 2 )*(R1-3r) is the total number of pixel points in the third sub-region
  • R0*S is the pixel point of the entire target video image. Total amount.
  • R1 (R0*S+3r*S- ⁇ d1 2 *r- ⁇ d2 2 *r- ⁇ d3 2 *r)/S.
  • the first resolution R1 can be determined according to R0, d1, d2, d3, S, and r, and the resolution of each sub-area is determined according to the relationship between each sub-area and R1, and the resolution of the first sub-area is R1-r, 2nd The resolution of the sub-area is R1-2r, and the resolution of the third sub-area is R1-3r.
  • FIG. 7b is another distribution diagram of the first area and the second area, wherein the first area has a rectangular shape and the area is S1, the first The resolution is R1, the second area is a gray area outside the first area, the second area has three sub-areas, and the distance between the first sub-area and the second area is the closest, which is a rectangle, the area is S2, and the second sub-area
  • the first sub-region is adjacent to each other, and has a rectangular shape
  • the area is S3, and the third sub-region is outside the second sub-region
  • the area of the target video image is S
  • the resolution corresponding to the transmission bandwidth is R0.
  • the resolution of the first sub-area is 1/2 of the first resolution
  • the resolution of the second sub-area is 1/3 of the first resolution
  • the resolution of the third sub-area is 1/ of the first resolution. 4.
  • the principle that the total number of pixel points does not change is that the sum of the total number of pixel points of the first area and the second area is equal to the total number of pixel points of the entire video image, and each The sum of the total number of pixels in the sub-area is equal to the total number of pixels in the second area, and the formula is obtained:
  • S1*R1 is the total number of pixels in the first region
  • S2*1/2R1 is the total number of pixels in the first sub-region
  • S3*1/3R1 is the total number of pixels in the second sub-region
  • (S- S3-S2-S1)*1/4R1 is the total number of pixels of the third sub-region
  • R0*S is the total number of pixels of the entire target video image.
  • R1 (R0*S)/(3/4S1+1/4S2+1/12S3+1/4S)
  • the first resolution R1 can be determined according to R0, S1, S2, S3, S4, and S, and further the resolution 1/2R1 of the first sub-region and the resolution 1/3R1 of the second sub-region are determined.
  • the resolution of the 3 sub-regions is 1/4R1.
  • S1, S2, S3, and S4 may be set as defaults, or may be set by a user, and will not be discussed here.
  • the second area may further include a plurality of sub-areas, for example, the second area includes 4 sub-areas, 5 sub-areas, etc., and the shape of each sub-area It is not limited to the above-mentioned circular and rectangular shapes, and the resolution of each sub-area may have other variations.
  • the distance between the target image location of the second region China and the center of the hotspot region may be first obtained, and the sub-region where the target image location is located is determined according to the distance, and then according to the resolution and the sub-region
  • the correspondence between the target image positions is determined, for example, determining that the target image position is located in the first sub-region, and the resolution of the first sub-region is the resolution of the target image position.
  • Implementation scenario 3 The resolution of the second region changes continuously in a portion of the target video image, and varies discretely in another portion of the target video image.
  • the resolution of each target image location may be determined by referring to the solution in the foregoing implementation scenario 1.
  • the scheme determines the resolution of each sub-region, and further determines the resolution of the target image location. Specifically, in which sub-region the target image location is located, the resolution of the target image location is the resolution of the current sub-region.
  • FIG. 8a is another distribution diagram of the first region and the second region, wherein the first region has a circular shape and a radius of d1.
  • One resolution is R1
  • the second area is a gray area outside the first area
  • the second area has two areas
  • the second area includes a third area and a fourth area, wherein the third area is a ring, the inner ring
  • the radius is d1 and the outer ring radius is d2.
  • the resolution of the third region changes continuously.
  • the fourth region is outside the third region.
  • the area includes two sub-areas, A area and B area respectively.
  • the A area is adjacent to the third area.
  • the radius of the ring in the A area is d2, the radius of the outer ring is d3, and the area B is outside the area A.
  • the resolution of the A area is assumed. 1/2 of the minimum resolution of the third region,
  • the resolution of the B area is 1/3 of the minimum resolution of the third area,
  • the area of the target video image is S, and the resolution corresponding to the transmission bandwidth is R0.
  • the principle that the total number of pixel points does not change is that the sum of the total number of pixel points of the first region, the third region, and the fourth region is equal to the total number of pixels of the entire video image.
  • the sum of the total number of pixels in the A area and the B area is equal to the total number of pixel points in the fourth area, and the formula is obtained:
  • ( ⁇ d1 2 )*R1 is the total number of pixels in the first region
  • ( ⁇ d3 2 - ⁇ d2 2 )*1/2(R1-d2+d1) is the total number of pixel points in the A region
  • (S- ⁇ d3 2 )*1/3 (R1- D2+d1) is the total number of pixels in the B region
  • R0*S is the total number of pixels of the entire target video image.
  • R1 (R0*S+1/6 ⁇ d2 3 +1/3 ⁇ d1 3 -1/2 ⁇ d2 2 d1-(1/6 ⁇ d3 2 +1/3S)(d1-d2))/(1/2 ⁇ d2 2 +1/6 ⁇ d3 3 +1/3S- ⁇ d1 2 )
  • the first resolution R1 can be determined according to R0, d1, d2, d3, and S, thereby determining the resolution function of the third region, the resolution of the A region, and the resolution of the B region.
  • FIG. 8b is another distribution diagram of the first region and the second region, wherein the shape of the first region is a circle and a radius
  • the first resolution is R1
  • the second area is a gray area outside the first area
  • the second area has two areas
  • the second area includes a fifth area and a sixth area, wherein the fifth area includes two sub-
  • the area is A area and B area respectively.
  • the inner ring radius of area A is d1
  • the outer ring radius is d2
  • the inner ring radius of B area is d2
  • the outer ring radius is d3
  • the resolution of the fifth area is discrete.
  • the resolution of the A area is 1/2 of the minimum resolution of the fifth area, the resolution of the B area is 1/3 of the minimum resolution of the fifth area; the sixth area is outside the fifth area, and the sixth area is
  • the resolution function of the second region may also be other functions.
  • the shape of the first region may also be other shapes, and the second region has other The way of division.
  • the corresponding resolution can be determined by the transmission bandwidth, and the correspondence between the resolution of the first resolution and the gradient and the distance can be obtained according to the principle of the total number of pixels, thereby determining the second region.
  • the distance between the target image position and the center of the hot spot region can be obtained, the target resolution at the distance is determined, and the image image of the target image position is processed at the target resolution.
  • Step S203 Send the processed target video image to the playing terminal.
  • the processed target video image is visually different from the original target video image, the original target
  • the sharpness of the image of each region of the target video image is the same
  • the sharpness of the image of the first region of the processed target video image is higher than the sharpness of the image of the second region
  • the image of the second region The image image that is farther away from the first region has a lower resolution.
  • the clear changes of the target video image are different, and the visual representation thereof is also different, and the image image closer to the center of the hot spot region has higher definition.
  • the following is an example of the target video image before processing and the processed target video image.
  • FIG. 9a is a target video image before processing, and the sharpness of the image screen at each position of the target video image before processing is the same.
  • FIG. 9b is a processed target video image. If the adopted resolution change rule corresponds to the implementation scenario 2 in the above step S203, for example, the processed target video image has four levels, wherein the innermost layer is the image of the first region. The picture is the clearest, the image of the second layer, that is, the image of the first sub-area is lower than the resolution of the image of the innermost layer, and the image of the third layer, that is, the image of the second sub-area, is lower than that of the second layer. The sharpness of the image picture, the sharpness of the image image of the outermost layer, that is, the third sub-area, is lower than the sharpness of the image picture of the third layer.
  • the above-mentioned processing may be performed on each frame of the target video image of the target video image, so that the image of the user's attention or interest is sufficiently clear and the resolution of the transmission bandwidth is satisfied. Rate demand.
  • the target video image area is divided into the first area and the second area according to the hotspot area of the target video image such that the hotspot area is in the first area, and then the first area is compared with the first area.
  • the rate decreases with the distance from the hotspot area.
  • the resolution of the hotspot area is higher by processing the video image, while the resolution of other areas is lower, and at the same time, after processing
  • the data amount of the video image is smaller than the data amount of the original video image, so that the useful video data, that is, the video data that the user wants to watch, can be transmitted to the user's playing terminal, thereby ensuring the user's viewing experience and saving bandwidth cost.
  • FIG. 10 is a schematic structural diagram of an apparatus for image processing according to an embodiment of the present invention.
  • the apparatus includes at least a first area processing module 310, a second area processing module 320, and a sending module 330.
  • the detailed description is as follows:
  • a first area processing module 310 configured to process, in a first resolution, a first area of the target video image, where the first area includes a hotspot area of the target video image;
  • a second area processing module 320 configured to process the second area of the target video image with a gradual resolution, the resolution of the gradation being smaller than the first resolution, wherein the distance in the second area
  • the image area corresponding to the hotspot area corresponds to a higher resolution, the second area is located outside the first area, and the second area and the first area constitute the target video image;
  • the sending module 330 is configured to send the processed target video image to the playing terminal.
  • the device further includes:
  • a hotspot area determining module 340 configured to determine a hotspot area of the target video image
  • the area dividing module 350 is configured to determine the first area and the second area of the target video image according to the hot spot area.
  • the area dividing module 350 includes:
  • a central determination sub-module 351, configured to determine a center of the hotspot area
  • the first area determining sub-module 352 is configured to determine an area having a center of the center and a radius of the first preset distance as the first area of the target video image.
  • the area dividing module 350 is specifically configured to:
  • a minimum regular graphics area containing the hotspot area is determined as the first area of the target video image.
  • the device further includes:
  • a transmission bandwidth determining module 360 configured to determine a transmission bandwidth with the playing terminal
  • the resolution determining module 370 is configured to determine the resolution of the first resolution and the gradation according to an area size of the first area, an area size of the second area, and the transmission bandwidth.
  • the resolution determining module 370 includes:
  • a first resolution determining submodule 370 configured to determine the first resolution according to an area size of the first area, an area size of the second area, and the transmission bandwidth;
  • the gradient resolution determining sub-module 371 is configured to determine a resolution of the target image position in the second region according to a distance between a target image position in the second region and a center of the hot spot region.
  • the gradient resolution determining submodule 371 includes:
  • a first distance obtaining unit 3711 configured to acquire a distance between a target image location in the second region and a center of the hotspot region
  • a first resolution determining unit 3712 configured to determine a resolution of a target image position in the second region according to a gradation function, wherein the gradation function is to represent a correspondence between the resolution and the distance function.
  • the second area includes a third area and a fourth area, wherein a shortest distance between the third area and a center of the hotspot area is smaller than a center of the fourth area and the hotspot area
  • the shortest distance between the shortest distances; the gradient resolution determining sub-module 371 includes:
  • a second distance acquiring unit 3713 configured to acquire a distance between a target image location in the third region and a center of the hotspot region
  • a second resolution determining unit 3714 configured to determine a resolution of a target image position in the third region according to a gradation function, wherein the gradation function is to represent a correspondence between the resolution and the distance function;
  • a third resolution determining unit 3715 configured to determine the second resolution as a resolution of a target image position in the fourth region, wherein the second resolution is less than or equal to a target image in the third region The minimum resolution of the location, the second resolution being a fixed resolution.
  • the second resolution is 1/N of the first resolution, N is an integer greater than 1; or the second resolution is a minimum resolution of a target image location in the third region.
  • 1/P, P is an integer greater than or equal to 1.
  • the gradation function comprises: a parabolic function, an elliptic function, and a declining function.
  • the second area includes K sub-areas, the resolution of the gradation is a resolution that varies discretely, and the resolution corresponding to the sub-area is a fixed resolution, where the (K-1) The shortest distance between the sub-region and the center of the hot spot region is smaller than the shortest distance between the K-th sub-region and the center of the hot-spot region, and K is a positive integer greater than or equal to 2;
  • the gradient resolution determination sub-module 371 include:
  • a third distance obtaining unit 3716 configured to acquire a target image location and the hotspot area in the second area The distance between the centers;
  • a sub-area determining unit 3717 configured to determine, according to the distance, a sub-area where the target image position is located;
  • the fourth resolution determining unit 3718 is configured to determine a resolution of the target image position according to a correspondence between the resolution and the sub-region.
  • the correspondence between the resolution and the sub-region includes: a resolution corresponding to the first sub-region of the target video image is 1/L of the first resolution or the first The difference between the resolution and the first preset value, where L is an integer greater than or equal to 1.
  • the mapping between the resolution and the sub-region further includes: a resolution corresponding to a Kth sub-region of the target video image is a resolution corresponding to the (K-1)th sub-region 1/M, M is an integer greater than 1; or the resolution corresponding to the Kth sub-region of the target video image is the resolution corresponding to the (K-1)th sub-region of the target video image and the second pre- Set the difference in value.
  • each module may also correspond to the corresponding description of the method embodiment shown in FIG. 3 .
  • the image processing server may divide the target video image area into the first area and the second area according to the hotspot area of the target video image, such that the hotspot area is in the first area, and then the first The resolution processes the first area, processes the second area with a gradual resolution, and finally sends the processed target video image to the user's playing terminal, wherein the first resolution is greater than all resolutions of the second area
  • the resolution of the second region decreases with increasing distance from the hotspot region. In the case of the same bandwidth, the resolution of the hotspot region is higher by processing the video image, and the resolution of other regions is lower.
  • the data amount of the processed video image is smaller than the data amount of the original video image, and the useful video data, that is, the video data that the user wants to watch, is transmitted to the user's playing terminal, thereby ensuring the user's viewing experience and saving bandwidth cost.
  • FIG. 11 is a schematic structural diagram of another apparatus for image processing according to an embodiment of the present invention.
  • the apparatus includes a processor 41, a memory 42, and a communication interface 43.
  • the processor 41 is connected to the memory 42 and the communication interface 43, for example, the processor 41 can be connected to the memory 42 and the communication interface 43 via a bus.
  • the processor 41 is configured to support a corresponding function in the method of image processing performed by the apparatus of the image processing described in FIG.
  • the processor 41 can be a central processing unit (CPU), a network processor (in English: network processor, NP), a hardware chip, or any combination thereof.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the above PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), and a general array logic (GAL). Or any combination thereof.
  • the memory 42 is used to store program codes and the like.
  • the memory 42 may include a volatile memory (English: volatile memory), such as a random access memory (English: random access memory, abbreviation: RAM); the memory 72 may also include a non-volatile memory (English: non-volatile memory)
  • ROM read-only memory
  • flash memory English: flash memory
  • hard disk English: hard disk drive, abbreviation: HDD
  • solid state drive English: solid-state drive , abbreviation: SSD
  • the memory 42 may also include a combination of the above types of memories.
  • Communication interface 43 is used to receive and transmit data.
  • the processor 41 can invoke the program code to perform the following operations:
  • the processed target video image is transmitted to the playback terminal through the communication interface 43.
  • the processor 41 before processing, by the processor 41, the first area of the target video image at a first resolution, the processor 41 is further configured to:
  • the determining, by the processor 41, the first area of the target video image according to the hotspot area specifically:
  • An area having a center of the center and a radius of the first predetermined distance is determined as the first area of the target video image.
  • the determining, by the processor 41, the first area of the target video image according to the hotspot area specifically:
  • a minimum regular graphics area containing the hotspot area is determined as the first area of the target video image.
  • the processor 41 before the processor 41 processes the first area of the target video image with the first resolution, the processor 41 is further configured to:
  • the processor 41 determines the resolution of the first resolution and the gradation according to the area size of the first area, the area size of the second area, and the transmission bandwidth, and specifically includes:
  • a resolution of a target image position in the second region is determined according to a distance between a target image position in the second region and a center of the hot spot region.
  • the determining, by the processor 41, the resolution of the target image location in the second region according to the distance between the target image location in the second region and the center of the hotspot region specifically including:
  • a resolution of a target image position in the second region is determined according to a gradation function, wherein the gradation function is a function that characterizes a correspondence between the resolution and the distance.
  • the second area includes a third area and a fourth area, wherein a shortest distance between the third area and a center of the hotspot area is smaller than a center of the fourth area and the hotspot area
  • the resolution of the target image position in the second region is determined by the processor 41 according to the distance between the target image location in the second region and the center of the hotspot region, and specifically includes:
  • gradation function is a function characterizing a correspondence between the resolution and the distance
  • a second resolution as a resolution of a target image position in the fourth region, wherein the second resolution is less than or equal to a minimum resolution of a target image position in the third region, the second resolution For fixed resolution.
  • the second resolution is 1/N of the first resolution, N is an integer greater than 1; or the second resolution is a minimum resolution of a target image location in the third region.
  • 1/P, P is an integer greater than or equal to 1.
  • the gradation function comprises: a parabolic function, an elliptic function, and a declining function.
  • the second area includes K sub-areas, the resolution of the gradation is a resolution that varies discretely, and the resolution corresponding to the sub-area is a fixed resolution, where the (K-1)
  • the shortest distance between the sub-area and the center of the hot spot area is smaller than the shortest distance between the K-th sub-area and the center of the hot-spot area, K is a positive integer greater than or equal to 2;
  • the processor 41 is based on the second area
  • the distance between the target image location and the center of the hotspot region determines the resolution of the target image location in the second region, and specifically includes:
  • a resolution of the target image position is determined according to a correspondence between the resolution and the sub-region.
  • the correspondence between the resolution and the sub-region includes: a resolution corresponding to the first sub-region of the target video image is 1/L of the first resolution or the first The difference between the resolution and the first preset value, where L is an integer greater than one.
  • the mapping between the resolution and the sub-region further includes: a resolution corresponding to a Kth sub-region of the target video image is a resolution corresponding to the (K-1)th sub-region 1/M, M is an integer greater than 1; or the resolution corresponding to the Kth sub-region of the target video image is the resolution corresponding to the (K-1)th sub-region of the target video image and the second pre- Set the difference in value.
  • the processor 41 is further configured to:
  • the step of processing the first region of the target video image at the first resolution is performed.
  • each operation may also correspond to the corresponding description of the method embodiment shown in FIG. 3 .
  • the embodiment of the present invention further provides a computer storage medium storing a computer program, the computer program comprising program instructions, when the image processing device performs the image processing
  • the apparatus performs the method as described in the previous embodiments.
  • the embodiment of the present invention further provides a computer program, including program instructions, which are used to execute the method as described in the foregoing embodiments when executed by an image processing apparatus.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

Disclosed in an embodiment of the present invention are an image processing method and device. The image processing method comprises: using a first resolution to perform processing on a first region of a target video image, the first region comprising a hot spot region of the target video image; using gradually changing resolutions to perform processing on a second region of the target video image, the gradually changing resolutions being lower than the first resolution, wherein the closer an image portion in the second region is to the hot spot region, the higher the corresponding resolution of the image portion, the second region is located outside the first region, and the second region and the first region constitute the target video image; and transmitting the processed target video image to a player terminal. The embodiment of the present invention enables more useful video data to be transmitted to a player terminal of a user.

Description

图像处理的方法和装置Image processing method and device 技术领域Technical field
本发明涉及图像处理领域,尤其涉及图像处理的方法和装置。The present invention relates to the field of image processing, and more particularly to a method and apparatus for image processing.
背景技术Background technique
内容分发网络(英文:Content Delivery Network,CDN)是构建在现有传输网络之上的网络,CDN依靠部署在各个地方的边缘服务器,通过中心平台的负载均衡、内容分发、调度等功能模块,使用户就近获取所需内容,降低网络拥塞,提高用户访问响应速度和命中率。采用CDN的方式传输视频的技术架构如图1所示,首先,网络服务器将视频文件上传到文件服务器中,然后,文件服务器将视频文件分配到多个内容分发网络中,最后,用户通过播放终端从各自对应的分发网络中获取或观看视频。The Content Delivery Network (CDN) is a network built on the existing transport network. The CDN relies on the edge servers deployed in various places, through the load balancing, content distribution, scheduling and other functional modules of the central platform. Users get the content they need, reduce network congestion, and improve user access response speed and hit rate. The technical architecture for transmitting video by CDN is as shown in FIG. 1. First, the network server uploads the video file to the file server, and then the file server distributes the video file to multiple content distribution networks, and finally, the user passes the playback terminal. Get or watch videos from their respective distribution networks.
CDN的方式虽然解决了视频的传输分发问题,但当视频的数据量过大时,在传输带宽较小或受限的情况下,用户在观看视频的过程中则会出现视频卡顿等问题,用户无法获得较好的观看体验。Although the CDN method solves the problem of transmission and distribution of video, when the amount of data of the video is too large, in the case where the transmission bandwidth is small or limited, the user may have problems such as video jamming during the process of watching the video. Users can't get a better viewing experience.
发明内容Summary of the invention
本发明实施例提供图像处理的方法和装置,能在传输带宽有限的情况下对目标视频的视频图像进行处理,在给用户提供较佳观看体验的同时减小目标视频的数据量,将更加有用的视频数据传输给用户的播放终端。Embodiments of the present invention provide a method and apparatus for image processing, which can process a video image of a target video with a limited transmission bandwidth, and reduce the data amount of the target video while providing a better viewing experience for the user, which is more useful. The video data is transmitted to the user's playback terminal.
本发明实施例第一方面提供一种图像处理的方法,包括:A first aspect of the embodiments of the present invention provides a method for image processing, including:
以第一分辨率对目标视频图像的第一区域进行处理,所述第一区域中包含所述目标视频图像的热点区域;Processing a first region of the target video image at a first resolution, the first region including a hotspot region of the target video image;
以渐变的分辨率对所述目标视频图像的第二区域进行处理,所述渐变的分辨率小于所述第一分辨率,其中,所述第二区域中距离所述热点区域越近的位置处的图像对应的分辨率越高,所述第二区域位于所述第一区域外,所述第二区域与所述第一区域构成所述目标视频图像;Processing a second region of the target video image with a gradient resolution that is less than the first resolution, wherein the second region is closer to the hotspot region The higher the resolution corresponding to the image, the second area is located outside the first area, and the second area and the first area constitute the target video image;
将处理后的目标视频图像发送至播放终端。The processed target video image is sent to the playback terminal.
具体地,目标视频图像的热点区域为用户视线的聚焦区域,即用户关注或感兴趣的某个区域,热点区域例如可以为球类比赛中的球,具体可以为足球、排球、篮球等,也可以为演唱会中的演唱者,具体可以为演唱者的脸,还可以为会议中的参会者,等等。Specifically, the hotspot area of the target video image is a focused area of the user's line of sight, that is, a certain area that the user pays attention to or is interested in. The hotspot area may be, for example, a ball in a ball game, specifically, soccer, volleyball, basketball, etc. It can be a singer in a concert, specifically a singer's face, a participant in a meeting, and so on.
本发明实施例中,可根据热点区域将目标视频图像区域划分为第一区域和第二区域,使得热点区域在第一区域中,然后以第一分辨率对第一区域进行处理,以渐变的分辨率对第二区域进行处理,最后将处理后的目标视频图像发送给用户的播放终端,其中,第一分辨率大于第二区域的所有分辨率,第二区域的分辨率随着与热点区域的距离增加分辨率减小,在同等带宽的情况下,通过对视频图像的处理使热点区域的分辨率更高,而其他区域的分辨率更低,同时使得处理后的视频图像的数据量小于原始视频图像的数据量,将有用的视频数据,即用户想看的视频数据传输给用户的播放终端,保证用户的观看体验,节省带宽成本。 In the embodiment of the present invention, the target video image area may be divided into the first area and the second area according to the hotspot area, so that the hotspot area is in the first area, and then the first area is processed at the first resolution to be gradual The resolution processes the second area, and finally sends the processed target video image to the user's playing terminal, wherein the first resolution is greater than all resolutions of the second area, and the resolution of the second area follows the hotspot area The distance is increased, and the resolution is reduced. In the case of the same bandwidth, the resolution of the hotspot area is higher by processing the video image, and the resolution of other areas is lower, and the data amount of the processed video image is smaller than The amount of data of the original video image, the useful video data, that is, the video data that the user wants to watch, is transmitted to the user's playing terminal to ensure the user's viewing experience and save bandwidth costs.
在第一方面的第一种可能的实现方式中,所述以第一分辨率对目标视频图像的第一区域进行处理之前还包括:确定所述目标视频图像的热点区域;根据所述热点区域确定所述目标视频图像的第一区域和所述第二区域。In a first possible implementation manner of the first aspect, before the processing, by the first resolution, the first region of the target video image, the method further includes: determining a hotspot region of the target video image; Determining a first region and the second region of the target video image.
结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述根据所述热点区域确定所述目标视频图像的第一区域包括:确定所述热点区域的中心;将以所述中心为圆心和第一预设距离为半径的区域确定为所述目标视频图像的第一区域。With reference to the first possible implementation manner of the first aspect, in a second possible implementation, the determining, by the hotspot region, the first region of the target video image includes: determining a center of the hotspot region; An area having a center of the center and a radius of the first predetermined distance is determined as the first area of the target video image.
结合第一方面的第一种可能的实现方式,在第三种可能的实现方式中,所述根据所述热点区域确定所述目标视频图像的第一区域包括:将包含所述热点区域的最小规则图形区域确定为所述目标视频图像的第一区域。具体地,最小规则图形区域包括但不限于圆形区域、矩形区域、菱形区域。In conjunction with the first possible implementation of the first aspect, in a third possible implementation, the determining, by the hotspot region, the first region of the target video image includes: a minimum of the hotspot region to be included The regular graphics area is determined to be the first area of the target video image. Specifically, the minimum regular pattern area includes, but is not limited to, a circular area, a rectangular area, and a diamond shaped area.
在第一方面的第四种可能的实现方式中,所述以第一分辨率对所述目标视频图像的第一区域进行处理之前还包括:确定与所述播放终端之间的传输带宽;根据所述第一区域的区域大小、所述第二区域的区域大小以及所述传输带宽确定所述第一分辨率和所述渐变的分辨率。具体地,可以根据用户通过播放终端发送的目标图像获取请求中确定与播放终端之间的传输带宽,例如目标图像获取请求中携带带宽数据;也可以根据播放终端的接入带宽确定与播放终端之间的传输带宽,其中,所述终端的接入带宽为用户的实际网络带宽;还可以根据传输网络能提供的有效带宽确定与播放终端之间的传输带宽。In a fourth possible implementation manner of the first aspect, before the processing, by the first resolution, the first area of the target video image, the method further includes: determining a transmission bandwidth with the play terminal; The area size of the first area, the area size of the second area, and the transmission bandwidth determine the resolution of the first resolution and the gradation. Specifically, the transmission bandwidth between the target and the playback terminal may be determined according to the target image acquisition request sent by the user through the playback terminal, for example, the bandwidth data is carried in the target image acquisition request; and the playback terminal may be determined according to the access bandwidth of the playback terminal. The transmission bandwidth of the terminal, wherein the access bandwidth of the terminal is the actual network bandwidth of the user; and the transmission bandwidth between the terminal and the playback terminal may also be determined according to the effective bandwidth that the transmission network can provide.
结合第一方面的第四种可能的实现方式,在第五种可能的实现方式中,所述根据所述第一区域的区域大小、所述第二区域的区域大小以及所述传输带宽确定所述渐变的分辨率包括:根据所述第二区域中的目标图像位置与所述热点区域的中心之间的距离确定所述第二区域中的目标图像位置的分辨率。With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation, the determining, according to the area size of the first area, the area size of the second area, and the transmission bandwidth The resolution of the gradation includes determining a resolution of a target image position in the second region according to a distance between a target image position in the second region and a center of the hot spot region.
结合第一方面的第五种可能的实现方式,在第六种可能的实现方式中,所述根据所述第二区域中的目标图像位置与所述热点区域的中心之间的距离确定所述第二区域中的目标图像位置的分辨率包括:获取所述第二区域中的目标图像位置与所述热点区域的中心之间的距离;根据渐变函数确定所述第二区域中的目标图像位置的分辨率,其中,所述渐变函数为表征所述分辨率与所述距离之间的对应关系的函数。具体地,所述距离可以以厘米、英寸、像素点等为单位。With reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation, the determining, according to a distance between a target image location in the second region and a center of the hotspot region, The resolution of the target image position in the second region includes: obtaining a distance between the target image position in the second region and a center of the hot spot region; determining a target image position in the second region according to a gradation function The resolution, wherein the gradient function is a function that characterizes a correspondence between the resolution and the distance. Specifically, the distance may be in units of centimeters, inches, pixels, and the like.
结合第一方面的第五种可能的实现方式,在第七种可能的实现方式中,所述第二区域包括第三区域和第四区域,其中,所述第三区域与所述热点区域的中心之间的最短距离小于所述第四区域与所述热点区域的中心之间的最短距离;所述根据所述第二区域中的目标图像位置与所述热点区域的中心之间的距离确定所述第二区域中的目标图像位置的分辨率包括:获取所述第三区域中的目标图像位置与所述热点区域的中心之间的距离;根据渐变函数确定所述第三区域中的目标图像位置的分辨率,其中,所述渐变函数为表征所述分辨率与所述距离之间的对应关系的函数;将第二分辨率确定为所述第四区域中的目标图像位置的分辨率,其中,所述第二分辨率小于等于第三区域中的目标图像位置的最小分辨率,所述第二分辨率为固定分辨率。With reference to the fifth possible implementation of the first aspect, in a seventh possible implementation, the second area includes a third area and a fourth area, where the third area and the hotspot area a shortest distance between the centers is smaller than a shortest distance between the fourth region and a center of the hotspot region; the determining is based on a distance between a target image location in the second region and a center of the hotspot region The resolution of the target image position in the second region includes: acquiring a distance between a target image position in the third region and a center of the hot spot region; determining a target in the third region according to a gradation function a resolution of an image position, wherein the gradient function is a function characterizing a correspondence between the resolution and the distance; determining a second resolution as a resolution of a target image position in the fourth region Wherein the second resolution is less than or equal to a minimum resolution of a target image location in the third region, the second resolution being a fixed resolution.
结合第一方面的第七种可能的实现方式,在第八种可能的实现方式中,所述第二分辨率为所述第一分辨率的1/N,N为大于1的整数;或者所述第二分辨率为第三区域中的目 标图像位置的最小分辨率的1/P,P为大于等于1的整数。With reference to the seventh possible implementation of the first aspect, in an eighth possible implementation, the second resolution is 1/N of the first resolution, and N is an integer greater than 1; The second resolution is the target in the third region 1/P of the minimum resolution of the target image position, P is an integer greater than or equal to 1.
在第一方面的第九种可能的实现方式中,所述渐变函数可以为抛物线函数、椭圆函数或一次递减函数等满足人眼视觉变化规律的渐变函数。In a ninth possible implementation manner of the first aspect, the gradation function may be a parabolic function, an elliptic function, or a one-time decreasing function, and the like, which satisfies a gradual change function of a human visual change rule.
结合第一方面的第五种可能的实现方式,在第十种可能的实现方式中,所述第二区域包括K个子区域,所述渐变的分辨率为呈离散性变化的分辨率,所述子区域对应的分辨率为固定分辨率,其中,第(K-1)子区域与所述热点区域的中心之间的最短距离小于第K子区域与所述热点区域的中心之间的最短距离,K为大于等于2的正整数;所述根据所述第二区域中的目标图像位置与所述热点区域的中心之间的距离确定所述第二区域中的目标图像位置的分辨率包括:获取所述第二区域中的目标图像位置与所述热点区域的中心之间的距离;根据所述距离确定所述目标图像位置所在的子区域;根据分辨率与所述子区域之间的对应关系确定所述目标图像位置的分辨率。具体地,所述子区域的形状可以为圆形、矩形、正三角形等规则形状。With reference to the fifth possible implementation manner of the first aspect, in a tenth possible implementation manner, the second area includes K sub-areas, and the resolution of the gradation is a resolution that varies discretely, The resolution corresponding to the sub-region is a fixed resolution, wherein the shortest distance between the (K-1)th sub-region and the center of the hotspot region is smaller than the shortest distance between the K-th sub-region and the center of the hotspot region And K is a positive integer greater than or equal to 2; determining the resolution of the target image position in the second region according to the distance between the target image position in the second region and the center of the hotspot region includes: Obtaining a distance between a target image position in the second area and a center of the hot spot area; determining a sub-area where the target image position is located according to the distance; and corresponding to the sub-area according to the resolution The relationship determines the resolution of the target image location. Specifically, the shape of the sub-region may be a regular shape such as a circle, a rectangle, or an equilateral triangle.
结合第一方面的第十种可能的实现方式,在第十一种可能的实现方式中,所述分辨率与所述子区域之间的对应关系包括:所述目标视频图像的第1子区域对应的分辨率为所述第一分辨率的1/L或所述第一分辨率与第一预设值的差值,其中,L为大于1的整数。With reference to the tenth possible implementation manner of the first aspect, in an eleventh possible implementation manner, the corresponding relationship between the resolution and the sub-region includes: a first sub-region of the target video image The corresponding resolution is 1/L of the first resolution or a difference between the first resolution and the first preset value, where L is an integer greater than 1.
结合第一方面的第十一种可能的实现方式,在第十二种可能的实现方式中,所述分辨率与所述子区域之间的对应关系还包括:所述目标视频图像的第K子区域对应的分辨率为所述第(K-1)子区域对应的分辨率的1/M,M为大于1的整数;或所述目标视频图像的第K子区域对应的分辨率为所述目标视频图像的第(K-1)子区域对应的分辨率与第二预设值的差值。With reference to the eleventh possible implementation manner of the first aspect, in a twelfth possible implementation, the corresponding relationship between the resolution and the sub-region further includes: a Kth of the target video image The resolution corresponding to the sub-region is 1/M of the resolution corresponding to the (K-1)th sub-region, and M is an integer greater than 1; or the resolution corresponding to the K-th sub-region of the target video image is The difference between the resolution corresponding to the (K-1)th sub-region of the target video image and the second preset value.
在第一方面的第十三种可能的实现方式中,所述方法还包括:确定传输所述目标视频图像所需的目标带宽及与所述播放终端之间的传输带宽;在所述目标带宽大于所述传输带宽的情况下,执行所述以第一分辨率对目标视频图像的第一区域进行处理的步骤。具体地,所述目标视频图像为原始目标视频图像,即处理前的目标视频图像。In a thirteenth possible implementation manner of the first aspect, the method further includes: determining a target bandwidth required for transmitting the target video image and a transmission bandwidth with the playing terminal; In the case of being greater than the transmission bandwidth, the step of processing the first region of the target video image at the first resolution is performed. Specifically, the target video image is an original target video image, that is, a target video image before processing.
在第一方面的第十四种可能的实现方式中,所述渐变的分辨率包括呈连续性变化的分辨率或呈离散性变化的分辨率。In a fourteenth possible implementation of the first aspect, the resolution of the gradation comprises a resolution that varies continuously or a resolution that varies discretely.
本发明实施例第二方面提供一种图像处理的装置,包括:A second aspect of the embodiments of the present invention provides an apparatus for image processing, including:
第一区域处理模块,用于以第一分辨率对所述目标视频图像的第一区域进行处理,所述第一区域中包含所述目标视频图像的热点区域;a first area processing module, configured to process, in a first resolution, a first area of the target video image, where the first area includes a hotspot area of the target video image;
第二区域处理模块,用于以渐变的分辨率对所述目标视频图像的第二区域进行处理,所述渐变的分辨率小于所述第一分辨率,其中,所述第二区域中距离所述热点区域越近的位置处的图像对应的分辨率越高,所述第二区域位于所述第一区域外,所述第二区域与所述第一区域构成所述目标视频图像;a second area processing module, configured to process the second area of the target video image with a gradual resolution, the resolution of the gradation being smaller than the first resolution, wherein the distance in the second area is The higher the resolution corresponding to the image at the position closer to the hot spot region, the second region is located outside the first region, and the second region and the first region constitute the target video image;
发送模块,用于将处理后的目标视频图像发送至播放终端。And a sending module, configured to send the processed target video image to the playing terminal.
本发明实施例第二方面提供的图像处理的装置还包括用于执行本发明实施例第一方面提供的图像处理的方法的其他程序模块,在此不再赘述。The apparatus for image processing provided by the second aspect of the present invention further includes other program modules for performing the image processing method provided by the first aspect of the embodiments of the present invention, and details are not described herein again.
本发明实施例第三方面提供一种图像处理的装置,其特征在于,包括处理器、存储器以及通信接口,所述处理器、存储器和通信接口相互连接,其中,所述通信接口用于接收 和发送数据,所述存储器用于存储支持图像处理的装置执行上述方法的应用程序代码,所述处理器被配置用于执行上述第一方面的各种方法。A third aspect of the embodiments of the present invention provides an apparatus for image processing, including a processor, a memory, and a communication interface, wherein the processor, the memory, and the communication interface are connected to each other, wherein the communication interface is configured to receive And transmitting data for storing an application code supporting the image processing apparatus for performing the above method, the processor being configured to perform the various methods of the first aspect described above.
本发明实施例第四方面提供一种计算机存储介质,用于储存为上述图像处理的装置所用的计算机程序指令,其包含用于执行上述第一方面所涉及的程序。A fourth aspect of the embodiments of the present invention provides a computer storage medium for storing computer program instructions for use in the apparatus for image processing described above, comprising a program for performing the above first aspect.
本发明实施例第五方面提供一种计算机程序,用于执行上述第一方面提供的各种方法。A fifth aspect of the embodiments of the present invention provides a computer program for performing the various methods provided by the above first aspect.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或背景技术中的技术方案,下面将对本发明实施例或背景技术中所需要使用的附图进行说明。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background art, the drawings to be used in the embodiments of the present invention or the background art will be described below.
图1是现有技术中采用CDN进行内容分发的技术架构图;1 is a technical architecture diagram of content distribution using a CDN in the prior art;
图2是本发明实施例提供的一种用于进行视频直播的系统结构示意图;2 is a schematic structural diagram of a system for performing live video broadcast according to an embodiment of the present invention;
图3是本发明实施例提供的一种图像处理的方法的流程示意图;3 is a schematic flowchart of a method for image processing according to an embodiment of the present invention;
图4a是本发发明实施例提供的未区分热点区域和非热点区域的目标视频图像;4a is a target video image of an undistinguished hotspot area and a non-hotspot area provided by an embodiment of the present invention;
图4b是本发明实施例提供的区分热点区域后的目标视频图像;FIG. 4b is a target video image after distinguishing a hot spot area according to an embodiment of the present invention; FIG.
图5a是本发明实施例提供的一种热点区域、第一区域、第二区域之间的关系示意图;FIG. 5 is a schematic diagram of a relationship between a hot spot area, a first area, and a second area according to an embodiment of the present invention;
图5b是本发明实施例提供的另一种热点区域、第一区域、第二区域之间的关系示意图;FIG. 5b is a schematic diagram of another hotspot area, a first area, and a second area according to an embodiment of the present invention;
图5c是本发明实施例提供的又一种热点区域、第一区域、第二区域之间的关系示意图;FIG. 5c is a schematic diagram of another relationship between a hot spot area, a first area, and a second area according to an embodiment of the present invention;
图6是本发明实施例提供的第一区域与第二区域的一种分布图;6 is a distribution diagram of a first area and a second area according to an embodiment of the present invention;
图7a是本发明实施例提供的第一区域与第二区域的又一种分布图;FIG. 7a is still another distribution diagram of a first area and a second area according to an embodiment of the present invention; FIG.
图7b是本发明实施例提供的第一区域与第二区域的又一种分布图;FIG. 7b is still another distribution diagram of the first area and the second area provided by the embodiment of the present invention; FIG.
图8a是本发明实施例提供的第一区域与第二区域的又一种分布图;FIG. 8a is still another distribution diagram of a first area and a second area according to an embodiment of the present invention; FIG.
图8b是本发明实施例提供的第一区域与第二区域的又一种分布图;FIG. 8b is still another distribution diagram of the first area and the second area provided by the embodiment of the present invention; FIG.
图9a是本发明实施例提供的处理前的目标视频图像;FIG. 9a is a target video image before processing according to an embodiment of the present invention; FIG.
图9b是本发明实施例提供的处理后的目标视频图像;FIG. 9b is a processed target video image according to an embodiment of the present invention; FIG.
图10是本发明实施例提供的一种图像处理的装置的结构示意图;FIG. 10 is a schematic structural diagram of an apparatus for image processing according to an embodiment of the present invention; FIG.
图11是本发明实施例提供的另一种图像处理的装置的结构示意图。FIG. 11 is a schematic structural diagram of another apparatus for image processing according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图对本发明实施例中的技术方案进行描述。The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
本发明实施例的方案适用于进行视频采集、制作以及传输的系统结构中,例如,如图2所示的一种用于进行视频直播的系统结构示意图,包括视频采集端101、视频拼接服务器102、网络服务器103,传输分发网络104以及播放终端105。在图2所示的系统结构示意图中,在视频直播过程中,视频采集端101用于捕捉各种最初的视频图像,例如现场视频图像,并将采集到的视频图像发送给视频拼接服务器102,视频采集端101例如可以为摄像机、摄像头等设备;视频拼接服务器102用于将视频采集端101采集到的视频图像 进行剪辑、编码等编辑处理生成目标视频,并将目标视频发送到网络服务器103;网络服务器103为视频网站的后台服务器,后台服务器也可以称云服务器,网络服务器103将目标视频分发到传输分发网络104中;传输分发网络104中包括多个缓存服务器/流媒体服务器,传输分发网络104将目标视频分发到各个播放终端105,传输分发网络104例如可以为CDN,播放终端例如可以为手机、虚拟现实(英文:Virtual Reality,VR)设备、平板电脑等可以用于播放视频的终端。The solution of the embodiment of the present invention is applicable to a system structure for performing video collection, production, and transmission. For example, a system structure for performing live video broadcast, as shown in FIG. 2, includes a video collection end 101 and a video splicing server 102. The network server 103, the transmission distribution network 104, and the playback terminal 105. In the system structure diagram shown in FIG. 2, in the video live broadcast process, the video collection end 101 is configured to capture various initial video images, such as live video images, and send the collected video images to the video splicing server 102. The video capture end 101 can be, for example, a camera, a camera, etc.; the video splicing server 102 is used to capture the video image collected by the video capture end 101. Perform editing processing such as editing, encoding, etc. to generate a target video, and send the target video to the web server 103; the web server 103 is a background server of the video website, the background server may also be called a cloud server, and the web server 103 distributes the target video to the transmission distribution network. The transmission distribution network 104 includes a plurality of cache servers/streaming servers, and the transmission distribution network 104 distributes the target video to the respective playback terminals 105. The transmission distribution network 104 can be, for example, a CDN, and the playback terminal can be, for example, a mobile phone or a virtual reality. (English: Virtual Reality, VR) Devices, tablets, etc. that can be used to play video.
具体地,视频可以为VR视频,也可以为普通视频。Specifically, the video may be a VR video or a normal video.
图2所示的系统结构可以将原始的目标视频传输至用户的播放终端,基于图2所示的系统结构,可实施本发明实施例提供的图像处理的方法,其中,可以通过视频拼接服务器执行对原始的目标视频图像进行处理的步骤,其中,所述原始的目标视频图像可以为目标视频的任意一帧视频图像,所述步骤具体包括以第一分辨率对目标视频图像的第一区域进行处理,以渐变的分辨率对目标视频图像的第二区域进行处理,也可以由传输分发网络中的缓存服务器/流媒体服务器执行所述对目标视频图像进行处理的步骤,还可以在所述系统结构中增设一个图像处理节点执行所述对目标视频图像进行处理的步骤,例如在传输分发网络中增设一个图像处理服务器执行所述对目标视频图像进行处理的步骤;然后,由传输分发网络将处理后的目标视频图像发送至用户的播放终端,从而减小目标视频中每一帧视频图像的数据量,节省传输带宽,将有用的视频数据传输给用户的播放终端。The system structure shown in FIG. 2 can transmit the original target video to the user's play terminal. Based on the system structure shown in FIG. 2, the image processing method provided by the embodiment of the present invention can be implemented, where the video stitching server can be executed. The step of processing the original target video image, wherein the original target video image may be any one of the target video images, the step specifically comprising: performing the first region of the target video image at the first resolution. Processing, processing the second area of the target video image with a gradual resolution, or performing the processing of the target video image by a cache server/streaming server in the transmission distribution network, and also in the system Adding an image processing node to the structure to perform the step of processing the target video image, for example, adding an image processing server to perform processing on the target video image in the transmission distribution network; and then processing by the transmission distribution network After the target video image is sent to the user's end of play Thus data amount of each frame of video decreases the target video image, saving transmission bandwidth, the terminal displays the video data useful to the user.
需要说明的是,本发明实施例提供的图像处理的方法还可以通过上述系统结构中的两个或多个服务器配合执行,这里不再进行一一列举。It should be noted that the image processing method provided by the embodiment of the present invention may also be performed by two or more servers in the foregoing system structure, and no further enumeration is made herein.
在一种可能的实现方式中,所述图2所示的系统结构还可以为用于进行视频点播的系统结构示意图,此时视频拼接服务器102将目标视频发送到网络服务器103,网络服务器103将目标视频分发到多个传输分发网络104后,目标视频可能在一段时间内都被缓存或存储在缓存服务器/流媒体服务器中,当用户需要观看所述目标视频时,则通过播放终端向网络服务器发起目标视频获取请求,然后网络服务器将离播放终端最近的缓存服务器/流媒体服务器的地址返回给播放终端,播放终端根据所述地址访问离播放终端最近的缓存服务器/流媒体服务器则可以观看目标视频,此时,可以由传输分发网络中的缓存服务器/流媒体服务器执行所述对目标视频图像进行处理的步骤,也可以在传输分发网络中增设一个图像处理服务器执行所述对目标视频图像进行处理的步骤。In a possible implementation manner, the system structure shown in FIG. 2 may also be a schematic structural diagram of a system for performing video on demand. At this time, the video splicing server 102 sends the target video to the network server 103, and the network server 103 After the target video is distributed to the plurality of transmission distribution networks 104, the target video may be cached or stored in the cache server/streaming server for a period of time, and when the user needs to view the target video, then the playback terminal is used to the network server. Initiating a target video acquisition request, and then the network server returns the address of the cache server/streaming server closest to the playing terminal to the playing terminal, and the playing terminal accesses the cache server/streaming server closest to the playing terminal according to the address to view the target. Video, at this time, the step of processing the target video image may be performed by a cache server/streaming server in the transmission distribution network, or an image processing server may be added to the transmission distribution network to perform the target video image. The steps of processing.
应理解的是,除了图2所示的系统结构以外,本发明实施例提供的图像处理的方法还适用于其他与视频图像传输有关的系统结构。It should be understood that the image processing method provided by the embodiment of the present invention is applicable to other system structures related to video image transmission, in addition to the system structure shown in FIG.
请参见图3,图3是本发明实施例提供的一种图像处理的方法的流程示意图,本发明的方法可在上述提到的服务器上实现,上述服务器具体包括视频拼接服务器、缓存服务器/流媒体服务器以及图像处理服务器中的至少一个服务器,该方法包括但不限于如下步骤:Referring to FIG. 3, FIG. 3 is a schematic flowchart diagram of a method for image processing according to an embodiment of the present invention. The method of the present invention may be implemented on the server mentioned above, where the server specifically includes a video splicing server and a cache server/flow. At least one of a media server and an image processing server, the method including but not limited to the following steps:
步骤S201:以第一分辨率对目标视频图像的第一区域进行处理,所述第一区域中包含所述目标视频图像的热点区域。Step S201: processing a first area of the target video image with a first resolution, where the first area includes a hotspot area of the target video image.
其中,热点区域为用户视线的聚焦区域,即相较于目标视频图像的其他区域来说,热点区域是用户更为关注或感兴趣的区域,用户希望看得更清楚的区域。The hotspot area is the focus area of the user's line of sight, that is, compared with other areas of the target video image, the hotspot area is an area where the user is more concerned or interested, and the area that the user desires to see more clearly.
可选地,在执行步骤S201之前还可以确定目标视频图像的热点区域并根据所述热点 区域确定所述目标视频图像的第一区域和第二区域。Optionally, before performing step S201, a hotspot area of the target video image may also be determined and according to the hotspot The region determines a first region and a second region of the target video image.
具体地,例如目标视频图像为足球比赛直播视频的一帧视频图像,则可以将足球所在的区域确定为热点区域或者将某个球员的脸部区域确定为热点区域;又如目标视频图像为演唱会直播视频的一帧视频图像,则可以将演唱者的脸部所在的区域确定为热点区域或者将演唱者的身体所在的区域确定为热点区域;又如目标视频图像为大型会议,具体如目标视频图像为全国会议的一帧视频图像,则可以将会议上的发言人的脸部或身体所在的区域确定为热点区域。Specifically, for example, if the target video image is a video image of a soccer game live video, the area where the soccer ball is located may be determined as a hot spot area or a face area of a certain player may be determined as a hot spot area; and the target video image is sung A video image of a live video can be used to determine the area where the singer's face is located as a hotspot area or the area where the singer's body is located as a hotspot area; and if the target video image is a large conference, such as a target The video image is a video image of a national conference, and the face of the speaker or the area where the body is located can be determined as the hotspot area.
例如可参见图4a和图4b,图4a是未区分热点区域和非热点区域的目标视频图像,图4b是区分热点区域后的目标视频图像,其中,图4a是篮球比赛视频的一帧视频图像,图像中有球员、球场、球篮、篮球等图像画面,图4b中将用白色区域圈定的图像画面,即篮球对应的图像画面为热点区域,黑色区域圈定的图像画面即篮球外的区域对应的图像画面为非热点区域。For example, referring to FIG. 4a and FIG. 4b, FIG. 4a is a target video image that does not distinguish between a hot spot area and a non-hot spot area, and FIG. 4b is a target video image after distinguishing the hot spot area, wherein FIG. 4a is a video image of a basketball game video. In the image, there are images such as players, stadiums, basketball baskets, basketballs, etc. In Figure 4b, the image images defined by the white areas, that is, the image images corresponding to the basketballs are hotspots, and the image images of the black areas are corresponding to the areas outside the basketball. The image image is a non-hot spot area.
可选地,可根据基于图像的目标识别方法确定目标视频图像的热点区域,其中,所述基于图像的目标识别方法可以为基于类特征的目标检测方法,也可以为基于纹理和边界特征的目标检测方法。Optionally, the hot spot region of the target video image may be determined according to the image-based target recognition method, wherein the image-based target recognition method may be a feature-based target detection method or a texture-based and boundary feature-based target Detection method.
可选地,当采用基于类特征的目标检测方法时,可采用类Haar特征,类Haar特征是一种简单矩形特征,因类似于Haar小波(英文:Haar wavelet)而得名,这种矩形特征能反映检测对象局部特征的灰度变化。例如通过提取目标视频图像的待识别区域的类Haar特征,其中,待识别区域包括热点区域和非热点区域,进而得到待识别区域的特征值,然后通过AdaBoost(英文:Adaptive Boosting)算法将这些特征值进行分类,从而确定热点区域。Optionally, when a class-based feature detection method is adopted, a Haar-like feature can be adopted, and the Haar-like feature is a simple rectangular feature, which is named after a Haar wavelet (English: Haar wavelet). A grayscale change that reflects the local features of the detected object. For example, by extracting the Haar-like feature of the to-be-identified region of the target video image, wherein the to-be-identified region includes the hotspot region and the non-hotspot region, and then obtaining the feature values of the to-be-identified region, and then using the AdaBoost (English: Adaptive Boosting) algorithm to perform these features. The values are categorized to determine the hotspot area.
可选地,当采用基于纹理和边界特征的目标检测方法时,可采用Harris算子、Forstner算子、Moravec算子等点特征提取算子提取像素点的特征,然后通过聚类操作形成不同类别的特征。Optionally, when the target detection method based on texture and boundary features is adopted, the features of the pixel points are extracted by using a Harris operator, a Forstner operator, a Moravic operator, etc., and then clustering operations are performed to form different categories. Characteristics.
在可选方式中,根据热点区域确定第一区域和第二区域时可以使第一区域的中心与热点区域的中心重合,进而使得所述热点区域位于所述第一区域的中间位置。In an optional manner, when determining the first area and the second area according to the hot spot area, the center of the first area may coincide with the center of the hot spot area, so that the hot spot area is located at an intermediate position of the first area.
在一种可能的实现方式中,在热点区域的形状是不规则的情况下,可以通过至少两种方式确定第一区域和第二区域:1)可以确定热点区域的中心,将以所述中心为圆心和第一预设距离为半径的区域确定为所述目标视频图像的第一区域,其中,第一预设距离半径大于热点区域的中心与热点区域的边缘之间的最大距离,相应地,第一区域外的区域即为第二区域;2)可以将包含所述热点区域的最小规则图形区域确定为所述目标视频图像的第一区域,其中,最小规则图形可以为圆形、矩形、三角形、菱形等形状区域,相应地,第一区域外的区域即为第二区域。In a possible implementation manner, in a case where the shape of the hot spot area is irregular, the first area and the second area may be determined in at least two manners: 1) the center of the hot spot area may be determined, and the center is to be Determining, as a first region of the target video image, a region having a radius of a center and a first predetermined distance, wherein the first predetermined distance radius is greater than a maximum distance between a center of the hot spot region and an edge of the hot spot region, and correspondingly The area outside the first area is the second area; 2) the minimum regular graphic area including the hot spot area may be determined as the first area of the target video image, wherein the minimum rule graphic may be a circle or a rectangle A shape area such as a triangle, a diamond, or the like, and correspondingly, a region outside the first area is the second area.
具体地,第一预设距离的单位可以为厘米、英寸、像素等图像距离单位,第一预设距离可以根据目标视频图像的总区域的长度和宽度进行设置,例如为总区域的长度的1/2、1/3等;也可以根据热点区域的中心与热点区域的边缘之间的最长距离来设置,例如为所述最长距离与预设阈值之和,具体地,预设阈值例如为1个单位的距离。Specifically, the unit of the first preset distance may be an image distance unit of centimeters, inches, pixels, etc., and the first preset distance may be set according to the length and width of the total area of the target video image, for example, the length of the total area is 1 /2, 1/3, etc.; may also be set according to the longest distance between the center of the hot spot area and the edge of the hot spot area, for example, the sum of the longest distance and a preset threshold, specifically, a preset threshold, for example The distance is 1 unit.
可选地,第一区域的大小可以为固定设置,也可以由用户自行设置,例如用户将所述 第一预设距离设置为2厘米,则确定第一区域为以热点区域的中心为圆心、以2厘米为半径的圆形区域,第一区域的区域大小为4π平方厘米。Optionally, the size of the first area may be a fixed setting, or may be set by the user, for example, the user will The first predetermined distance is set to 2 cm, and it is determined that the first area is a circular area with a center of the hot spot area as a center and a radius of 2 cm, and the area of the first area is 4π square centimeter.
在另一种可能的实现方式中,在热点区域的形状是规则图形的情况下,除了可以采用上述两种方式确定第一区域和第二区域外,还可以直接将热点区域确定为第一区域,相应地,第一区域外的区域即为第二区域。In another possible implementation manner, in a case where the shape of the hot spot area is a regular figure, in addition to determining the first area and the second area by using the above two manners, the hot spot area may be directly determined as the first area. Correspondingly, the area outside the first area is the second area.
以下举例对根据热点区域如何确定第一区域和第二区域进行说明,参见图5a-5c,假设确定了热点区域的目标视频图像如图4b所示。图5a是本发明实施例提供的一种热点区域、第一区域、第二区域之间的关系示意图,图5a中,第一区域为以热点区域的中心为圆心、以第一预设距离为半径的圆形区域,热点区域在第一区域内,第一区域外的区域为第二区域;图5b是本发明实施例提供的另一种热点区域、第一区域、第二区域之间的关系示意图,图5b中,第一区域为包含热点区域的最小正方形区域,第一区域的中心和热点区域的中心重合,第一区域外的区域为第二区域;图5c是本发明实施例提供的又一种热点区域、第一区域、第二区域之间的关系示意图;图5c中,第一区域与热点区域重合,热点区域外的区域为第二区域。The following example illustrates how the first region and the second region are determined according to the hotspot region. Referring to Figures 5a-5c, it is assumed that the target video image of the hotspot region is determined as shown in Figure 4b. FIG. 5a is a schematic diagram of a relationship between a hot spot area, a first area, and a second area according to an embodiment of the present invention. In FIG. 5a, the first area is centered on the center of the hot spot area, and the first preset distance is a circular area of a radius, the hotspot area is in the first area, and the area outside the first area is the second area; FIG. 5b is another hotspot area, the first area, and the second area provided by the embodiment of the present invention. A schematic diagram of the relationship, in FIG. 5b, the first area is the smallest square area including the hotspot area, the center of the first area and the center of the hot spot area coincide, and the area outside the first area is the second area; FIG. 5c is provided by the embodiment of the present invention. Another schematic diagram of the relationship between the hot spot area, the first area, and the second area; in FIG. 5c, the first area and the hot spot area coincide, and the area outside the hot spot area is the second area.
可选地,在执行步骤S201之前还可以确定与播放终端之间的传输带宽和传输目标视频图像所需的目标带宽,在目标带宽大于传输带宽的情况下,执行步骤S201;在目标带宽小于传输带宽的情况下,不对目标视频图像进行处理,直接将未处理过/原始的目标视频图像发送给播放终端。Optionally, before the step S201 is performed, the transmission bandwidth between the playback terminal and the target bandwidth required for transmitting the target video image may be determined. If the target bandwidth is greater than the transmission bandwidth, step S201 is performed; and the target bandwidth is smaller than the transmission. In the case of bandwidth, the target video image is not processed, and the unprocessed/original target video image is directly transmitted to the playback terminal.
可选地,可以通过至少以下几种方式确定传输带宽:Optionally, the transmission bandwidth can be determined in at least the following ways:
1)在服务器的带宽资源不受限制的情况下,将播放终端的接入带宽确定为传输带宽,即将用户的实际带宽确定为传输带宽;1) In the case that the bandwidth resource of the server is not limited, the access bandwidth of the playback terminal is determined as the transmission bandwidth, that is, the actual bandwidth of the user is determined as the transmission bandwidth;
2)在服务器的带宽资源不受限制的情况下,接收用户通过播放终端发送的带宽指示,根据带宽指示确定传输带宽,即将用户指定的带宽确定为传输带宽;举例来说,假设用户当前的接入带宽为20M,但是用户不希望所有的带宽都用来传输目标视频图像,用户只想用10M的带宽来传输目标视频图像,则用户在可以播放终端上设置播放带宽为10M,播放终端将带宽指示设置为10M,服务器接收到带宽指示后,将10M确定为传输带宽。2) In the case that the bandwidth resource of the server is not limited, the bandwidth indication sent by the user through the playing terminal is received, and the transmission bandwidth is determined according to the bandwidth indication, that is, the bandwidth specified by the user is determined as the transmission bandwidth; for example, the current connection of the user is assumed. The inbound bandwidth is 20M, but the user does not want all the bandwidth to be used to transmit the target video image. The user only wants to use 10M bandwidth to transmit the target video image. The user can set the playback bandwidth to 10M on the playable terminal, and the playback terminal will bandwidth. The indication is set to 10M, and after receiving the bandwidth indication, the server determines 10M as the transmission bandwidth.
3)在服务器的带宽资源受到限制的情况下,则根据服务器的带宽资源分配情况确定服务器当前剩余的空闲带宽,然后根据一定的带宽分配规则将空闲带宽的部分带宽确定为与播放终端之间的传输带宽,在此种情况下,传输带宽小于等于播放终端的接入带宽。3) In the case that the bandwidth resource of the server is limited, the current free bandwidth of the server is determined according to the bandwidth resource allocation of the server, and then part of the bandwidth of the idle bandwidth is determined to be between the playback terminal and the terminal according to a certain bandwidth allocation rule. Transmission bandwidth, in which case the transmission bandwidth is less than or equal to the access bandwidth of the playback terminal.
步骤S202:以渐变的分辨率对所述目标视频图像的第二区域进行处理,所述渐变的分辨率小于所述第一分辨率,其中,所述第二区域中距离所述热点区域越近的位置处的图像对应的分辨率越高,所述第二区域位于所述第一区域外,所述第二区域与所述第一区域构成所述目标视频图像。Step S202: processing a second region of the target video image with a gradient resolution, the resolution of the gradient being smaller than the first resolution, wherein the second region is closer to the hotspot region The higher the resolution corresponding to the image at the location, the second region is outside the first region, and the second region and the first region constitute the target video image.
具体地,可以根据与播放终端之间的传输带宽确定第一分辨率和渐变的分辨率。Specifically, the resolution of the first resolution and the gradation may be determined according to a transmission bandwidth with the playback terminal.
在一种可能的实现方式中,可根据传输带宽、第一区域的区域大小以及第二区域的区域大小确定第一分辨率,根据第二区域中的目标图像位置与热点区域的中心之间的距离与分辨率的对应关系确定目标图像位置的分辨率。In a possible implementation, the first resolution may be determined according to the transmission bandwidth, the size of the area of the first area, and the size of the area of the second area, according to the location between the target image location in the second area and the center of the hotspot area. The correspondence between the distance and the resolution determines the resolution of the target image position.
具体地,第一区域和第二区域的区域大小可以用面积来进行衡量,也可以通过区域内 的像素点总量来进行衡量。Specifically, the size of the area of the first area and the second area may be measured by area or by area The total number of pixels is measured.
其中,第二区域中的分辨率满足“图像位置离热点区域越近,对应的分辨率越高”这一条件关系,则可以针对第二区域设置至少以下几种分辨率变化规则:1)第二区域的分辨率呈连续性变化,分辨率与距离之间存在函数对应关系,其中,所述距离指的是第二区域的目标图像位置与热点区域的中心之间的距离,距离越大,函数值越小;2)第二区域的分辨率呈离散性变化,其中,第二区域被划分为多个子区域,子区域内的分辨率是固定的,不同的子区域对应不同的分辨率,离热点区域的中心越远的子区域,其对应的分辨率越低;3)第二区域的分辨率在第二区域的一部分区域呈连续性变化,在第二区域的另一部分区域呈离散性变化。Wherein, the resolution in the second region satisfies the condition that the closer the image position is to the hot spot region, the higher the resolution is, the at least the following resolution change rules may be set for the second region: 1) The resolution of the two regions changes continuously, and there is a function correspondence between the resolution and the distance, wherein the distance refers to the distance between the target image position of the second region and the center of the hot spot region, and the distance is larger. The smaller the function value is; 2) the resolution of the second region varies discretely, wherein the second region is divided into a plurality of sub-regions, the resolution in the sub-region is fixed, and the different sub-regions correspond to different resolutions. The farther the sub-area from the center of the hot spot area, the lower the corresponding resolution; 3) the resolution of the second area changes continuously in a part of the second area, and the other part of the second area is discrete Variety.
具体地,分辨率与距离之间的渐变函数可以为抛物线函数、椭圆函数或一次递减函数等符合人眼视觉变化的函数关系。Specifically, the gradation function between the resolution and the distance may be a functional relationship such as a parabolic function, an elliptic function, or a decremental function that conforms to changes in the human visual.
以下具体介绍第二区域中的渐变的分辨率的几种变化规则,同时结合第二区域的分辨率的变化规则介绍确定第一分辨率和渐变的分辨率的方法。Several variations of the resolution of the gradation in the second region are specifically described below, and a method of determining the resolution of the first resolution and the gradation is introduced in conjunction with the variation rule of the resolution of the second region.
需说明的是,在以下场景中确定的第一分辨率和渐变的分辨率均指单位面积上的分辨率,若需确定目标视频图像某个区域的总的分辨率,将单位面积上的分辨率与对应的区域面积相乘即可得到某个区域总的分辨率。It should be noted that the resolution of the first resolution and the gradation determined in the following scenarios refers to the resolution per unit area. If it is necessary to determine the total resolution of a certain area of the target video image, the resolution on a unit area is determined. The rate is multiplied by the corresponding area to get the total resolution of a certain area.
需说明的是,以下介绍的几种场景中,第一区域的中心为热点区域的中心,在可选方案中,第一区域的中心可以不与热点区域的中心一致。It should be noted that, in the following scenarios, the center of the first area is the center of the hotspot area. In the alternative, the center of the first area may not be consistent with the center of the hotspot area.
实施场景一:第二区域的分辨率呈连续性变化,其中,分辨率与距离之间存在函数对应关系。Implementation scenario 1: The resolution of the second region changes continuously, wherein there is a function correspondence between the resolution and the distance.
在此种实施场景下,可以将距离作为渐变函数的自变量,将分辨率作为渐变函数的因变量,因变量与自变量之间满足递减对应关系,即因变量随着自变量的增大而减小,则可以选用递减函数作为分辨率与距离之间的渐变函数。In this implementation scenario, the distance can be used as the argument of the gradual function, the resolution is used as the dependent variable of the gradual function, and the dependent variable and the independent variable satisfy the decreasing correspondence, that is, the dependent variable increases with the independent variable. If you decrease, you can use the decreasing function as the gradient function between resolution and distance.
具体地,可以首先确定第一区域的大小、确定第二区域的最大半径,其中,最大半径指热点区域的中心到第二区域的边缘之间的最大距离,然后根据传输带宽确定传输带宽对应的分辨率,根据像素点总量一致的原则和渐变函数确定第一分辨率,根据距离与分辨率的渐变函数确定各个距离下的分辨率,其中,像素点总量一致原则指针对区域大小相同的目标视频图像,分辨率改变前的目标视频图像包含的像素点总量等于分辨率改变后的目标视频图像包含的像素点总量。Specifically, the size of the first area may be first determined, and the maximum radius of the second area is determined, where the maximum radius refers to the maximum distance between the center of the hot spot area and the edge of the second area, and then the transmission bandwidth is determined according to the transmission bandwidth. The resolution determines the first resolution according to the principle that the total number of pixels is consistent and the gradient function, and determines the resolution at each distance according to the gradient function of the distance and the resolution, wherein the total number of pixels is consistent, the pointer is the same as the size of the region. The target video image, the target video image before the resolution change contains a total amount of pixels equal to the total number of pixels included in the target video image after the resolution change.
下面以函数为一次递减函数为例介绍具体过程。Let's take a function as a decrement function as an example to introduce the specific process.
例如,第一区域与第二区域的分布如6所示,图6是第一区域与第二区域的一种分布图,其中,第一区域的形状为圆形,半径为d1,第一分辨率为R1,第二区域为第一区域外的灰色区域,第二区域的分辨率函数为R2=R1-(x-d1),传输带宽对应的分辨率为R0,需说明的是,本发明实施例中所述的分辨率R0指的是传输带宽对应的分辨率,即在播放不卡顿的情况下传输带宽能够支持传输的目标视频图像在单位面积上的分辨率,同时,在未作明确说明的情况下,R1、R0、R2均指单位面积上的分辨率。For example, the distribution of the first area and the second area is as shown in FIG. 6. FIG. 6 is a distribution diagram of the first area and the second area, wherein the shape of the first area is circular, the radius is d1, and the first resolution is The rate is R1, the second area is a gray area outside the first area, the resolution function of the second area is R2=R1-(x-d1), and the resolution corresponding to the transmission bandwidth is R0. It should be noted that the present invention The resolution R0 described in the embodiment refers to the resolution corresponding to the transmission bandwidth, that is, the transmission bandwidth can support the resolution of the transmitted target video image per unit area when the playback is not stuck, and at the same time, In the case of explicit explanation, R1, R0, and R2 all refer to the resolution per unit area.
首先将第二区域放在以热点区域的中心为圆心的两个同心圆构成的圆环中,如图6所示,在此种情况下,圆1的半径为热点区域的中心与第二区域的边界的最小距离,圆1 与第一区域重合,则圆1的半径为d1,圆2为包含第二区域的最小圆,则圆2的半径d2为热点区域的中心与第二区域的边界的最大距离,根据像素点总量不变原则,在此种情况下,像素点总量不变原则为圆1的像素点总量与圆环的像素点总量之和等于圆2的像素点总量,得到公式:First, the second area is placed in a ring composed of two concentric circles centered on the center of the hot spot area, as shown in FIG. 6, in which case the radius of the circle 1 is the center of the hot spot area and the second area. Minimum distance of the boundary, circle 1 Coincident with the first region, the radius of the circle 1 is d1, the circle 2 is the smallest circle containing the second region, and the radius d2 of the circle 2 is the maximum distance between the center of the hot spot region and the boundary of the second region, according to the total pixel point The principle of quantity constant, in this case, the principle that the total number of pixels is constant is that the sum of the total number of pixels of circle 1 and the total number of pixels of the ring is equal to the total number of pixels of circle 2, and the formula is obtained:
Figure PCTCN2017080645-appb-000001
Figure PCTCN2017080645-appb-000001
其中,(πd12)*R1为圆1的像素点总量,
Figure PCTCN2017080645-appb-000002
为圆环的像素点总量,R0*(πd22)为圆2的像素点总量。
Where (πd1 2 )*R1 is the total number of pixels of circle 1,
Figure PCTCN2017080645-appb-000002
The total number of pixels of the circle, R0*(πd2 2 ) is the total number of pixels of the circle 2.
然后反推得到R1,R1=(R0*d22+1/3d13-2/3d23-d22d1)/d22 Then push back to get R1, R1=(R0*d2 2 +1/3d1 3 -2/3d2 3 -d2 2 d1)/d2 2
根据上述公式,根据R0、d1以及d2则可以确定第一分辨R1,进而根据公式R2=R1-(x-d1)求得第二区域的分辨率函数为R2=(R0*d22+1/3d13-2/3d23-d22d1)/d22-x+d1,获取第二区域上的目标位置图像与热点区域的中心的距离x,把x的值带入则可确定目标位置图像的分辨率。According to the above formula, according to R0, d1 and d2, the first resolution R1 can be determined, and then the resolution function of the second region is obtained according to the formula R2=R1-(x-d1) is R2=(R0*d2 2 +1/ 3d1 3 -2/3d2 3 -d2 2 d1)/d2 2 -x+d1, obtain the distance x between the target position image on the second area and the center of the hot spot area, and take the value of x to determine the target position image Resolution.
具体地,d1、d2可以在确定第一区域和第二区域后得到。Specifically, d1, d2 may be obtained after determining the first area and the second area.
具体地,可以根据传输带宽得到R0,假设目标视频图像的面积为5英寸,传输带宽对应的分辨率为1080P,其中,1080P包含1280*720个像素点,则R0=1280*720/5,R0的单位为像素点/英寸。Specifically, R0 can be obtained according to the transmission bandwidth, assuming that the area of the target video image is 5 inches, and the resolution corresponding to the transmission bandwidth is 1080P, wherein 1080P includes 1280*720 pixels, then R0=1280*720/5, R0 The unit is pixels/inch.
应理解的是,上述示例仅用于解释发明实施例,不应构成限定,第二区域的分辨率函数还可以为其他函数,其中,分辨率函数为一次函数(R2=kx+b,k与b取常数)时,k的值不限于1,第一区域的形状还可以为其他形状。It should be understood that the above examples are only used to explain the embodiments of the invention, and should not be construed as limiting. The resolution function of the second region may also be other functions, wherein the resolution function is a linear function (R2=kx+b, k and When b is a constant), the value of k is not limited to 1, and the shape of the first region may be other shapes.
实施场景二:第二区域的分辨率呈离散性变化,第二区域有K个子区域,其中,第(K-1)子区域与所述热点区域的中心之间的最短距离小于第K子区域与所述热点区域的中心之间的最短距离,即从视觉上来看,第K子区域在第(K-1)子区域的外侧或包围第(K-1)子区域。Implementation scenario 2: the resolution of the second region varies discretely, and the second region has K sub-regions, wherein the shortest distance between the (K-1)th sub-region and the center of the hotspot region is smaller than the K-th sub-region The shortest distance from the center of the hot spot area, that is, visually, the Kth sub-area is outside of the (K-1)th sub-area or surrounds the (K-1)th sub-area.
在此种实施例场景下,在一种可能的实现方式中,为了便于确定各子区域的分辨率,可以将各个子区域的分辨率进行关联,使得各个子区域之间的分辨率呈现规律性变化,例如第K子区域的分辨率第(K-1)子区域的1/M,M为大于1的整数,又如第K子区域的分辨率为第(K-1)子区域的分辨率减去第二预设值;然后确定K个子区域中离热点区域的中心最近的子区域的分辨率,即确定第1子区域的分辨率。In a possible implementation manner, in a possible implementation manner, in order to facilitate determining the resolution of each sub-region, the resolutions of the respective sub-regions may be correlated, so that the resolution between the sub-regions is regular. The change, for example, the resolution of the (K-1)th sub-region of the Kth sub-region is 1/M, M is an integer greater than 1, and the resolution of the K-th sub-region is the resolution of the (K-1)th sub-region. The rate is subtracted from the second preset value; then the resolution of the sub-region closest to the center of the hot spot region among the K sub-regions is determined, that is, the resolution of the first sub-region is determined.
在可选方案中,第1子区域的分辨率为第一分辨率的1/L或第一分辨率减去第一预设值,其中,L为大于1的整数。In an alternative, the resolution of the first sub-region is 1/L of the first resolution or the first resolution minus the first preset value, where L is an integer greater than 1.
可选地,L与M可以设置得相等,也可以不等;第一预设值与第二预设值可以设置得相等,也可以不等。Optionally, L and M may be set equal or different; the first preset value and the second preset value may be set equal to each other, or may be unequal.
在另一种可能的实现方式中,也可不将各个子区域的分辨率进行关联,即各个子区域的分辨率为无规律性变化,此时可分别将各个子区域与第一分辨率进行关联,如第1子区域的分辨率为第一分辨率减去第一预设值、第2子区域的分辨率为第二分辨率减去第二预设值、第3子区域的分辨率为第一分辨率的1/L…第K子区域的分辨率为第一分辨率的 1/M,这里仅作为示例,另外,各个子区域之间还需满足“离热点区域越远,其对应的分辨率越低”这一条件。In another possible implementation manner, the resolutions of the sub-areas may not be associated, that is, the resolution of each sub-area is irregular, and each sub-area may be associated with the first resolution. For example, the resolution of the first sub-region is the first resolution minus the first preset value, the resolution of the second sub-region is the second resolution minus the second preset value, and the resolution of the third sub-region is The resolution of the first resolution is 1/L...the Kth sub-region is the first resolution 1/M, here only as an example, in addition, each sub-region needs to satisfy the condition that "the farther away from the hot spot region, the lower the corresponding resolution is."
可选地,第一分辨率也可以替换为一个预设的小于第一分辨率的固定分辨率。Alternatively, the first resolution may also be replaced with a preset fixed resolution smaller than the first resolution.
下面通过具体介绍对上述两种子区域之间的分辨率关系以及确定各个区域的分辨率,其中,所述各个区域指第一区域和第二区域的各个子区域。The resolution relationship between the above two sub-regions and the resolution of each region are determined by referring to the respective sub-regions of the first region and the second region.
例如,第一区域与第二区域的分布如图7a所示,图7a是第一区域与第二区域的又一种分布图,其中,第一区域的形状为圆形,半径为d1;第一分辨率为R1,第二区域为第一区域外的灰色区域,第二区域有3个子区域,第1子区域与第一区域的距离最近,为一个圆环,内环半径为d1,外环半径为d2;第2子区域与第1子区域相邻,也为一个圆环,内环半径为d2,外环半径为d3;第3子区域在第2子区域外,目标视频图像的面积为S,传输带宽对应的分辨率为R0。For example, the distribution of the first area and the second area is as shown in FIG. 7a, and FIG. 7a is another distribution diagram of the first area and the second area, wherein the first area has a circular shape with a radius of d1; A resolution is R1, the second area is a gray area outside the first area, and the second area has three sub-areas, and the first sub-area is closest to the first area, and is a ring having an inner ring radius of d1. The ring radius is d2; the second sub-region is adjacent to the first sub-region, and is also a ring, the inner ring radius is d2, the outer ring radius is d3; the third sub-region is outside the second sub-region, the target video image is The area is S, and the resolution corresponding to the transmission bandwidth is R0.
在第1子区域的分辨率为第一分辨率的1/L,第K子区域的分辨率为第(K-1)子区域的分辨率的1/M的情况下,假设L和M均取值为2,根据像素点总量不变原则,在此种情况下,像素点总量不变原则为第一区域与第二区域的像素点总量之和等于视频图像整体的像素点总量,各个子区域的像素点总量之和等于第二区域的像素点总量,得到公式:In the case where the resolution of the first sub-region is 1/L of the first resolution and the resolution of the K-th sub-region is 1/M of the resolution of the (K-1)th sub-region, both L and M are assumed The value is 2, according to the principle that the total number of pixels is constant, in this case, the principle that the total number of pixels does not change is that the sum of the total number of pixels of the first region and the second region is equal to the total pixel of the video image. The amount, the sum of the total number of pixels in each sub-area is equal to the total number of pixels in the second area, and the formula is obtained:
(πd12)*R1+1/2(πd22-πd12)*R1+1/4(πd32-πd22)*R1+1/8(S-πd32)*R1=R0*S(πd1 2 )*R1+1/2(πd2 2 -πd1 2 )*R1+1/4(πd3 2 -πd2 2 )*R1+1/8(S-πd3 2 )*R1=R0*S
其中,(πd12)*R1为第一区域的像素点总量,1/2(πd22-πd12)*R1为第1子区域的像素点总量,1/4(πd22-πd12)*R1为第2子区域的像素点总量,1/8(S-πd32)*R1为第3子区域的像素点总量,R0*S为整个目标视频图像的像素点总量。Where (πd1 2 )*R1 is the total number of pixel points in the first region, 1/2(πd2 2 -πd1 2 )*R1 is the total number of pixel points in the first sub-region, 1/4 (πd2 2 -πd1 2 *R1 is the total number of pixels in the second sub-region, 1/8 (S-πd3 2 )*R1 is the total number of pixels in the third sub-region, and R0*S is the total number of pixels in the entire target video image.
然后反推得到R1,R1=(R0*S)/(1/2πd12+1/4πd22+1/8πd32+1/8S)Then push back to get R1, R1=(R0*S)/(1/2πd1 2 +1/4πd2 2 +1/8πd3 2 +1/8S)
根据上述公式,根据R0、d1、d2、d3以及S则可以确定第一分辨率R1,进而根据各个子区域与R1的关系确定各个子区域的分辨率,第1子区域的分辨率为1/2R1,第2子区域的分辨率为1/4R1,第3子区域的分辨率为1/8R1。According to the above formula, the first resolution R1 can be determined according to R0, d1, d2, d3, and S, and the resolution of each sub-area is determined according to the relationship between each sub-area and R1, and the resolution of the first sub-area is 1/1 2R1, the resolution of the second sub-area is 1/4R1, and the resolution of the third sub-area is 1/8R1.
具体地,d1、d2、d3可以为默认的距离,也可以由用户进行设置,d1、d2、d3之间可以呈规律性变化,如d1=1/2d2,d2=1/2d3,d3为目标视频图像的宽度的一半等。Specifically, d1, d2, and d3 may be default distances, or may be set by the user, and d1, d2, and d3 may change regularly, such as d1=1/2d2, d2=1/2d3, and d3 is the target. Half the width of the video image, etc.
在第1子区域的分辨率为第一分辨率减去第一预设值,第K子区域的分辨率为第(K-1)子区域的分辨率减去第二预设值的情况下,假设第一预设值和第二预设值均为r,根据像素点总量不变原则,在此种情况下,像素点总量不变原则为第一区域与第二区域的像素点总量之和等于视频图像整体的像素点总量,各个子区域的像素点总量之和等于第二区域的像素点总量,得到公式:The resolution of the first sub-region is the first resolution minus the first preset value, and the resolution of the K-th sub-region is the resolution of the (K-1)th sub-region minus the second preset value. Assuming that the first preset value and the second preset value are both r, according to the principle that the total number of pixel points does not change, in this case, the principle that the total number of pixel points does not change is the pixel points of the first region and the second region. The sum of the total amounts is equal to the total number of pixels of the video image, and the sum of the total number of pixels of each sub-area is equal to the total number of pixels of the second area, and the formula is obtained:
(πd12)*R1+(πd22-πd12)*(R1-r)+(πd32-πd22)*(R1-2r)+(S-πd32)*(R1-3r)=R0*S(πd1 2 )*R1+(πd2 2 -πd1 2 )*(R1-r)+(πd3 2 -πd2 2 )*(R1-2r)+(S-πd3 2 )*(R1-3r)=R0*S
其中,(πd12)*R1为第一区域的像素点总量,(πd22-πd12)*(R1-r)为第1子区域的像素点总量,(πd32-πd22)*(R1-2r)为第2子区域的像素点总量,(S-πd32)*(R1-3r)为第3子区域的像素点总量,R0*S为整个目标视频图像的像素点总量。Where (πd1 2 )*R1 is the total number of pixel points in the first region, and (πd2 2 - πd1 2 )*(R1-r) is the total number of pixel points in the first sub-region, (πd3 2 - πd2 2 )* (R1-2r) is the total number of pixel points in the second sub-region, (S-πd3 2 )*(R1-3r) is the total number of pixel points in the third sub-region, and R0*S is the pixel point of the entire target video image. Total amount.
然后反推得到R1,R1=(R0*S+3r*S-πd12*r-πd22*r-πd32*r)/S。Then, R1 is obtained, and R1=(R0*S+3r*S-πd1 2 *r-πd2 2 *r-πd3 2 *r)/S.
根据上述公式,根据R0、d1、d2、d3、S以及r则可以确定第一分辨率R1,进而根据各个子区域与R1的关系确定各个子区域的分辨率,第1子区域的分辨率为R1-r,第2 子区域的分辨率为R1-2r,第3子区域的分辨率为R1-3r。According to the above formula, the first resolution R1 can be determined according to R0, d1, d2, d3, S, and r, and the resolution of each sub-area is determined according to the relationship between each sub-area and R1, and the resolution of the first sub-area is R1-r, 2nd The resolution of the sub-area is R1-2r, and the resolution of the third sub-area is R1-3r.
又如,第一区域与第二区域的分布如图7b所示,图7b是第一区域与第二区域的又一种分布图,其中第一区域的形状为矩形,面积为S1,第一分辨率为R1,第二区域为第一区域外的灰色区域,第二区域有3个子区域,第1子区域与第二区域的距离最近,为一个矩形,面积为S2,第2子区域与第1子区域相邻,也一个矩形,面积为S3,第3子区域在第2子区域外,目标视频图像的面积为S,传输带宽对应的分辨率为R0。For another example, the distribution of the first area and the second area is as shown in FIG. 7b, and FIG. 7b is another distribution diagram of the first area and the second area, wherein the first area has a rectangular shape and the area is S1, the first The resolution is R1, the second area is a gray area outside the first area, the second area has three sub-areas, and the distance between the first sub-area and the second area is the closest, which is a rectangle, the area is S2, and the second sub-area The first sub-region is adjacent to each other, and has a rectangular shape, the area is S3, and the third sub-region is outside the second sub-region, the area of the target video image is S, and the resolution corresponding to the transmission bandwidth is R0.
假设第1子区域的分辨率为第一分辨率的1/2,第2子区域的分辨率为第一分辨率的1/3,第3子区域的分辨率为第一分辨率的1/4,根据像素点总量不变原则,在此种情况下,像素点总量不变原则为第一区域与第二区域的像素点总量之和等于视频图像整体的像素点总量,各个子区域的像素点总量之和等于第二区域的像素点总量,得到公式:It is assumed that the resolution of the first sub-area is 1/2 of the first resolution, the resolution of the second sub-area is 1/3 of the first resolution, and the resolution of the third sub-area is 1/ of the first resolution. 4. According to the principle that the total number of pixel points does not change, in this case, the principle that the total amount of pixel points does not change is that the sum of the total number of pixel points of the first area and the second area is equal to the total number of pixel points of the entire video image, and each The sum of the total number of pixels in the sub-area is equal to the total number of pixels in the second area, and the formula is obtained:
S1*R1+S2*1/2R1+S3*1/3R1+(S-S3-S2-S1)*1/4R1=R0*S。S1*R1+S2*1/2R1+S3*1/3R1+(S-S3-S2-S1)*1/4R1=R0*S.
其中,S1*R1为第一区域的像素点总量,S2*1/2R1为第1子区域的像素点总量,S3*1/3R1为第2子区域的像素点总量,(S-S3-S2-S1)*1/4R1为第3子区域的像素点总量,R0*S为整个目标视频图像的像素点总量。Where S1*R1 is the total number of pixels in the first region, S2*1/2R1 is the total number of pixels in the first sub-region, and S3*1/3R1 is the total number of pixels in the second sub-region, (S- S3-S2-S1)*1/4R1 is the total number of pixels of the third sub-region, and R0*S is the total number of pixels of the entire target video image.
然后反推R1,R1=(R0*S)/(3/4S1+1/4S2+1/12S3+1/4S)Then push back R1, R1=(R0*S)/(3/4S1+1/4S2+1/12S3+1/4S)
根据上述公式,根据R0、S1、S2、S3、S4以及S则可以确定第一分辨率R1,进而确定第1子区域的分辨率1/2R1,第2子区域的分辨率1/3R1,第3子区域的分辨率1/4R1。According to the above formula, the first resolution R1 can be determined according to R0, S1, S2, S3, S4, and S, and further the resolution 1/2R1 of the first sub-region and the resolution 1/3R1 of the second sub-region are determined. The resolution of the 3 sub-regions is 1/4R1.
具体地,S1、S2、S3、S4可以为默认设置,也可以由用户进行设置,在此不做讨论。Specifically, S1, S2, S3, and S4 may be set as defaults, or may be set by a user, and will not be discussed here.
应理解的是,上述示例仅用于解释发明实施例,不应构成限定,第二区域还可以包括多个子区域,例如第二区域包括4个子区域、5个子区域等等,各个子区域的形状不限于上述的圆形、矩形,各个子区域的分辨率还可以有其他变化方式。It should be understood that the above examples are only used to explain the embodiments of the invention, and should not be construed as limiting. The second area may further include a plurality of sub-areas, for example, the second area includes 4 sub-areas, 5 sub-areas, etc., and the shape of each sub-area It is not limited to the above-mentioned circular and rectangular shapes, and the resolution of each sub-area may have other variations.
在此种实施场景下,可以首先获取第二区域中国的目标图像位置与热点区域的中心之间的距离,根据所述距离确定所述目标图像位置所在的子区域,然后根据分辨率与子区域之间的对应的关系确定所述目标图像位置的分辨率,例如确定所述目标图像位置位于第1子区域中,则第1子区域的分辨率即为所述目标图像位置的分辨率。In this implementation scenario, the distance between the target image location of the second region China and the center of the hotspot region may be first obtained, and the sub-region where the target image location is located is determined according to the distance, and then according to the resolution and the sub-region The correspondence between the target image positions is determined, for example, determining that the target image position is located in the first sub-region, and the resolution of the first sub-region is the resolution of the target image position.
实施场景三:第二区域的分辨率在目标视频图像就的一部分区域呈连续性变化,在目标视频图像的另一部分区域呈离散性变化。Implementation scenario 3: The resolution of the second region changes continuously in a portion of the target video image, and varies discretely in another portion of the target video image.
在此种实施场景下,对于呈连续性变化的区域,可参考上述实施场景一中的方案确定各个目标图像位置的分辨率,对于呈离散性变化的区域,可参考上述实施例场景二种的方案确定各个子区域的分辨率,进而确定目标图像位置的分辨率,具体地,目标图像位置在哪个子区域,目标图像位置的分辨率即为当前所在的子区域的分辨率。In this implementation scenario, for the region that changes continuously, the resolution of each target image location may be determined by referring to the solution in the foregoing implementation scenario 1. For the region that varies discretely, refer to the scenario of the foregoing embodiment. The scheme determines the resolution of each sub-region, and further determines the resolution of the target image location. Specifically, in which sub-region the target image location is located, the resolution of the target image location is the resolution of the current sub-region.
下面举例对实施场景三的情况进行介绍,如图8a所示,图8a是第一区域与第二区域的又一种分布图,其中,第一区域的形状为圆形,半径为d1,第一分辨率为R1,第二区域为第一区域外的灰色区域,第二区域有两个区域,第二区域包括第三区域和第四区域,其中,第三区域为一个圆环,内环半径为d1,外环半径为d2,第三区域的分辨率呈连续性变化,第三区域的分辨率函数为R2=R1-(x-d1),第四区域在第三区域外,第四区域包括两个子区域,分别为A区域和B区域,A区域与第三区域相邻,A区域内环半径为d2,外环半径为d3,B区域在A区域外,假设A区域的分辨率为第三区域的最小分辨率的1/2, B区域的分辨率为第三区域的最小分辨率的1/3,目标视频图像的面积为S,传输带宽对应的分辨率为R0。The following describes an example of implementing the scenario 3, as shown in FIG. 8a. FIG. 8a is another distribution diagram of the first region and the second region, wherein the first region has a circular shape and a radius of d1. One resolution is R1, the second area is a gray area outside the first area, the second area has two areas, and the second area includes a third area and a fourth area, wherein the third area is a ring, the inner ring The radius is d1 and the outer ring radius is d2. The resolution of the third region changes continuously. The resolution function of the third region is R2=R1-(x-d1), and the fourth region is outside the third region. The area includes two sub-areas, A area and B area respectively. The A area is adjacent to the third area. The radius of the ring in the A area is d2, the radius of the outer ring is d3, and the area B is outside the area A. The resolution of the A area is assumed. 1/2 of the minimum resolution of the third region, The resolution of the B area is 1/3 of the minimum resolution of the third area, the area of the target video image is S, and the resolution corresponding to the transmission bandwidth is R0.
根据像素点总量不变原则,在此种情况下,像素点总量不变原则为第一区域、第三区域以及第四区域的像素点总量之和等于视频图像整体的像素点总量,A区域和B区域的像素点总量之和等于第四区域的像素点总量,得到公式:According to the principle that the total number of pixel points does not change, in this case, the principle that the total number of pixel points does not change is that the sum of the total number of pixel points of the first region, the third region, and the fourth region is equal to the total number of pixels of the entire video image. The sum of the total number of pixels in the A area and the B area is equal to the total number of pixel points in the fourth area, and the formula is obtained:
Figure PCTCN2017080645-appb-000003
Figure PCTCN2017080645-appb-000003
其中,(πd12)*R1为第一区域的像素点总量,
Figure PCTCN2017080645-appb-000004
为第三区域的像素点总量,(πd32-πd22)*1/2(R1-d2+d1)为A区域的像素点总量,(S-πd32)*1/3(R1-d2+d1)为B区域的像素点总量,R0*S为整个目标视频图像的像素点总量。
Where (πd1 2 )*R1 is the total number of pixels in the first region,
Figure PCTCN2017080645-appb-000004
For the total number of pixels in the third region, (πd3 2 -πd2 2 )*1/2(R1-d2+d1) is the total number of pixel points in the A region, (S-πd3 2 )*1/3 (R1- D2+d1) is the total number of pixels in the B region, and R0*S is the total number of pixels of the entire target video image.
然后反推得到R1,R1=(R0*S+1/6πd23+1/3πd13-1/2πd22d1-(1/6πd32+1/3S)(d1-d2))/(1/2πd22+1/6πd33+1/3S-πd12)Then inversely get R1, R1=(R0*S+1/6πd2 3 +1/3πd1 3 -1/2πd2 2 d1-(1/6πd3 2 +1/3S)(d1-d2))/(1/2πd2 2 +1/6πd3 3 +1/3S-πd1 2 )
根据上述公式,根据R0、d1、d2、d3以及S则可以确定第一分辨率R1,进而确定第三区域的分辨率函数、A区域的分辨率以及B区域的分辨率。According to the above formula, the first resolution R1 can be determined according to R0, d1, d2, d3, and S, thereby determining the resolution function of the third region, the resolution of the A region, and the resolution of the B region.
在可选实施例中,图8b的分布图还可以变化如图8b所示,图8b是第一区域与第二区域的又一种分布图,其中,第一区域的形状为圆形,半径为d1,第一分辨率为R1,第二区域为第一区域外的灰色区域,第二区域有两个区域,第二区域包括第五区域和第六区域,其中,第五区域包括两个子区域,分别为A区域和B区域,A区域的内环半径为d1,外环半径为d2,B区域的内环半径为d2,外环半径为d3,第五区域的分辨率呈离散性变化,A区域的分辨率为第五区域的最小分辨率的1/2,B区域的分辨率为第五区域的最小分辨率的1/3;第六区域在第五区域外,第六区域的分辨率函数为R2=1/3*R1-(x-d1),目标视频图像的面积为S,传输带宽对应的分辨率为R0。In an alternative embodiment, the profile of FIG. 8b can also be changed as shown in FIG. 8b, and FIG. 8b is another distribution diagram of the first region and the second region, wherein the shape of the first region is a circle and a radius For d1, the first resolution is R1, the second area is a gray area outside the first area, the second area has two areas, and the second area includes a fifth area and a sixth area, wherein the fifth area includes two sub- The area is A area and B area respectively. The inner ring radius of area A is d1, the outer ring radius is d2, the inner ring radius of B area is d2, the outer ring radius is d3, and the resolution of the fifth area is discrete. The resolution of the A area is 1/2 of the minimum resolution of the fifth area, the resolution of the B area is 1/3 of the minimum resolution of the fifth area; the sixth area is outside the fifth area, and the sixth area is The resolution function is R2=1/3*R1-(x-d1), the area of the target video image is S, and the resolution corresponding to the transmission bandwidth is R0.
计算R1的方式可参考上述提到的方案,计算得到R1后可进一步得到R2,这里不再赘述。For the method of calculating R1, refer to the above-mentioned scheme, and R2 can be further obtained after calculating R1, and details are not described herein again.
应理解的是,上述示例仅用于解释发明实施例,不应构成限定,第二区域的分辨率函数还可以为其他函数,第一区域的形状还可以为其他形状,第二区域还有其他划分方式。It should be understood that the above examples are only used to explain the embodiments of the invention, and should not be construed as limiting. The resolution function of the second region may also be other functions. The shape of the first region may also be other shapes, and the second region has other The way of division.
需说明的是,上述介绍的几种实施场景仅为第二区域的分辨率变化规则的部分体现,在可选方案中,还可以有其他分辨率变化规则,例如还可对上述实施场景三中的子区域进行细化,使其分辨率呈连续或离散性变化,在此不再进行列举。It should be noted that the foregoing implementation scenarios are only partially reflected in the resolution change rule of the second region. In the alternative, other resolution change rules may also be used, for example, in the foregoing implementation scenario III. The sub-areas are refined to have a continuous or discrete change in resolution, which is not enumerated here.
根据上述提到的方案,可通过传输带宽确定其对应的分辨率,根据像素点总量不变原则可以得出第一分辨率以及渐变的分辨率与距离的对应关系,进而确定第二区域中的图像位置在各个距离下的分辨率。According to the solution mentioned above, the corresponding resolution can be determined by the transmission bandwidth, and the correspondence between the resolution of the first resolution and the gradient and the distance can be obtained according to the principle of the total number of pixels, thereby determining the second region. The position of the image at various distances.
确定各个距离下的分辨率后,则可获取目标图像位置与热点区域中心的距离,确定该距离下的目标分辨率,以目标分辨率对目标图像位置的图像画面进行处理。After determining the resolution at each distance, the distance between the target image position and the center of the hot spot region can be obtained, the target resolution at the distance is determined, and the image image of the target image position is processed at the target resolution.
步骤S203:将处理后的目标视频图像发送至播放终端。Step S203: Send the processed target video image to the playing terminal.
具体地,处理后的目标视频图像在视觉上与原始的目标视频图像有所不同,原始的目 标视频图像的各个区域的图像画面的清晰度是相同的,经过处理的目标视频图像的第一区域的图像画面的清晰度高于第二区域的图像画面清晰度,且第二区域的图像画面中离第一区域越远的图像画面,其对应的清晰度越低。Specifically, the processed target video image is visually different from the original target video image, the original target The sharpness of the image of each region of the target video image is the same, the sharpness of the image of the first region of the processed target video image is higher than the sharpness of the image of the second region, and the image of the second region The image image that is farther away from the first region has a lower resolution.
具体地,根据处理过程中采用的分辨率变化规则不同,目标视频图像的清晰变化有所不同,其在视觉上的呈现也有所不同,越靠近热点区域的中心的图像画面清晰度越高。Specifically, according to different resolution change rules adopted in the process, the clear changes of the target video image are different, and the visual representation thereof is also different, and the image image closer to the center of the hot spot region has higher definition.
下面举例对处理前的目标视频图像和处理后的目标视频图像进行介绍。The following is an example of the target video image before processing and the processed target video image.
参见图9a-图9b。图9a是处理前的目标视频图像,处理前的目标视频图像的各个位置的图像画面的清晰度是一样的。图9b是处理后的目标视频图像,若采用的分辨率变化规则对应上述步骤S203中的实施场景二,例如处理后的目标视频图像有4个层次,其中,最内层即第一区域的图像画面最清晰,第二层即第1子区域的图像画面的清晰度低于最内层的图像画面的清晰度,第三层即第2子区域的图像画面的清晰度低于第二层的图像画面的清晰度,最外层即第3子区域的图像画面的清晰度低于第三层的图像画面的清晰度。See Figures 9a-9b. Fig. 9a is a target video image before processing, and the sharpness of the image screen at each position of the target video image before processing is the same. FIG. 9b is a processed target video image. If the adopted resolution change rule corresponds to the implementation scenario 2 in the above step S203, for example, the processed target video image has four levels, wherein the innermost layer is the image of the first region. The picture is the clearest, the image of the second layer, that is, the image of the first sub-area is lower than the resolution of the image of the innermost layer, and the image of the third layer, that is, the image of the second sub-area, is lower than that of the second layer. The sharpness of the image picture, the sharpness of the image image of the outermost layer, that is, the third sub-area, is lower than the sharpness of the image picture of the third layer.
具体地,针对于目标视频,在传输带宽有限的情况下,可对目标视频图像的每一帧目标视频图像进行上述处理,可以保证用户关注或感兴趣的图像画面足够清晰且满足传输带宽的分辨率需求。Specifically, for the target video, if the transmission bandwidth is limited, the above-mentioned processing may be performed on each frame of the target video image of the target video image, so that the image of the user's attention or interest is sufficiently clear and the resolution of the transmission bandwidth is satisfied. Rate demand.
在图3所描述的方法中,根据目标视频图像的热点区域将目标视频图像区域划分为第一区域和第二区域,使得热点区域在第一区域中,接着以第一分辨率对第一区域进行处理,以渐变的分辨率对第二区域进行处理,最后将处理后的目标视频图像发送给用户的播放终端,其中,第一分辨率大于第二区域的所有分辨率,第二区域的分辨率随着与热点区域的距离增加分辨率减小,在同等传输带宽的情况下,通过对视频图像的处理使热点区域的分辨率更高,而其他区域的分辨率更低,同时使得处理后的视频图像的数据量小于原始视频图像的数据量,这样可以将有用的视频数据即用户想看的视频数据传输给用户的播放终端,保证用户的观看体验,节省带宽成本。In the method described in FIG. 3, the target video image area is divided into the first area and the second area according to the hotspot area of the target video image such that the hotspot area is in the first area, and then the first area is compared with the first area. Processing, processing the second area with a gradual resolution, and finally transmitting the processed target video image to the user's playing terminal, wherein the first resolution is greater than all resolutions of the second area, and the resolution of the second area The rate decreases with the distance from the hotspot area. In the case of the same transmission bandwidth, the resolution of the hotspot area is higher by processing the video image, while the resolution of other areas is lower, and at the same time, after processing The data amount of the video image is smaller than the data amount of the original video image, so that the useful video data, that is, the video data that the user wants to watch, can be transmitted to the user's playing terminal, thereby ensuring the user's viewing experience and saving bandwidth cost.
上述详细阐述了本发明实施例的方法,下面提供了本发明实施例的装置。The above describes the method of the embodiment of the present invention in detail, and the apparatus of the embodiment of the present invention is provided below.
请参见图10,图10是本发明实施例提供的一种图像处理的装置的结构示意图,该装置至少包括第一区域处理模块310、第二区域处理模块320以及发送模块330,其中,各个模块的详细描述如下:Referring to FIG. 10, FIG. 10 is a schematic structural diagram of an apparatus for image processing according to an embodiment of the present invention. The apparatus includes at least a first area processing module 310, a second area processing module 320, and a sending module 330. The detailed description is as follows:
第一区域处理模块310,用于以第一分辨率对目标视频图像的第一区域进行处理,所述第一区域中包含所述目标视频图像的热点区域;a first area processing module 310, configured to process, in a first resolution, a first area of the target video image, where the first area includes a hotspot area of the target video image;
第二区域处理模块320,用于以渐变的分辨率对所述目标视频图像的第二区域进行处理,所述渐变的分辨率小于所述第一分辨率,其中,所述第二区域中距离所述热点区域越近的图像位置对应的分辨率越高,所述第二区域位于所述第一区域外,所述第二区域与所述第一区域构成所述目标视频图像;a second area processing module 320, configured to process the second area of the target video image with a gradual resolution, the resolution of the gradation being smaller than the first resolution, wherein the distance in the second area The image area corresponding to the hotspot area corresponds to a higher resolution, the second area is located outside the first area, and the second area and the first area constitute the target video image;
发送模块330,用于将处理后的目标视频图像发送至播放终端。The sending module 330 is configured to send the processed target video image to the playing terminal.
可选地,所述装置还包括:Optionally, the device further includes:
热点区域确定模块340,用于确定目标视频图像的热点区域;a hotspot area determining module 340, configured to determine a hotspot area of the target video image;
区域划分模块350,用于根据所述热点区域确定所述目标视频图像的第一区域和所述第二区域。 The area dividing module 350 is configured to determine the first area and the second area of the target video image according to the hot spot area.
可选地,所述区域划分模块350包括:Optionally, the area dividing module 350 includes:
中心确定子模块351,用于确定所述热点区域的中心;a central determination sub-module 351, configured to determine a center of the hotspot area;
第一区域确定子模块352,用于将以所述中心为圆心和第一预设距离为半径的区域确定为所述目标视频图像的第一区域。The first area determining sub-module 352 is configured to determine an area having a center of the center and a radius of the first preset distance as the first area of the target video image.
可选地,所述区域划分模块350具体用于:Optionally, the area dividing module 350 is specifically configured to:
将包含所述热点区域的最小规则图形区域确定为所述目标视频图像的第一区域。A minimum regular graphics area containing the hotspot area is determined as the first area of the target video image.
可选地,所述装置还包括:Optionally, the device further includes:
传输带宽确定模块360,用于确定与所述播放终端之间的传输带宽;a transmission bandwidth determining module 360, configured to determine a transmission bandwidth with the playing terminal;
分辨率确定模块370,用于根据所述第一区域的区域大小、所述第二区域的区域大小以及所述传输带宽确定所述第一分辨率和所述渐变的分辨率。The resolution determining module 370 is configured to determine the resolution of the first resolution and the gradation according to an area size of the first area, an area size of the second area, and the transmission bandwidth.
可选地,所述分辨率确定模块370包括:Optionally, the resolution determining module 370 includes:
第一分辨率确定子模块370,用于根据所述第一区域的区域大小、所述第二区域的区域大小以及所述传输带宽确定所述第一分辨率;a first resolution determining submodule 370, configured to determine the first resolution according to an area size of the first area, an area size of the second area, and the transmission bandwidth;
渐变分辨率确定子模块371,用于根据所述第二区域中的目标图像位置与所述热点区域的中心之间的距离确定所述第二区域中的目标图像位置的分辨率。The gradient resolution determining sub-module 371 is configured to determine a resolution of the target image position in the second region according to a distance between a target image position in the second region and a center of the hot spot region.
可选地,所述渐变分辨率确定子模块371包括:Optionally, the gradient resolution determining submodule 371 includes:
第一距离获取单元3711,用于获取所述第二区域中的目标图像位置与所述热点区域的中心之间的距离;a first distance obtaining unit 3711, configured to acquire a distance between a target image location in the second region and a center of the hotspot region;
第一分辨率确定单元3712,用于根据渐变函数确定所述第二区域中的目标图像位置的分辨率,其中,所述渐变函数为表征所述分辨率与所述距离之间的对应关系的函数。a first resolution determining unit 3712, configured to determine a resolution of a target image position in the second region according to a gradation function, wherein the gradation function is to represent a correspondence between the resolution and the distance function.
可选地,所述第二区域包括第三区域和第四区域,其中,所述第三区域与所述热点区域的中心之间的最短距离小于所述第四区域与所述热点区域的中心之间的最短距离;所述渐变分辨率确定子模块371包括:Optionally, the second area includes a third area and a fourth area, wherein a shortest distance between the third area and a center of the hotspot area is smaller than a center of the fourth area and the hotspot area The shortest distance between the shortest distances; the gradient resolution determining sub-module 371 includes:
第二距离获取单元3713,用于获取所述第三区域中的目标图像位置与所述热点区域的中心之间的距离;a second distance acquiring unit 3713, configured to acquire a distance between a target image location in the third region and a center of the hotspot region;
第二分辨率确定单元3714,用于根据渐变函数确定所述第三区域中的目标图像位置的分辨率,其中,所述渐变函数为表征所述分辨率与所述距离之间的对应关系的函数;a second resolution determining unit 3714, configured to determine a resolution of a target image position in the third region according to a gradation function, wherein the gradation function is to represent a correspondence between the resolution and the distance function;
第三分辨率确定单元3715,用于将所述第二分辨率确定为所述第四区域中的目标图像位置的分辨率,其中,所述第二分辨率小于等于第三区域中的目标图像位置的最小分辨率,所述第二分辨率为固定分辨率。a third resolution determining unit 3715, configured to determine the second resolution as a resolution of a target image position in the fourth region, wherein the second resolution is less than or equal to a target image in the third region The minimum resolution of the location, the second resolution being a fixed resolution.
可选地,所述第二分辨率为所述第一分辨率的1/N,N为大于1的整数;或者所述第二分辨率为第三区域中的目标图像位置的最小分辨率的1/P,P为大于等于1的整数。Optionally, the second resolution is 1/N of the first resolution, N is an integer greater than 1; or the second resolution is a minimum resolution of a target image location in the third region. 1/P, P is an integer greater than or equal to 1.
可选地,所述渐变函数包括:抛物线函数、椭圆函数、一次递减函数。Optionally, the gradation function comprises: a parabolic function, an elliptic function, and a declining function.
可选地,所述第二区域包括K个子区域,所述渐变的分辨率为呈离散性变化的分辨率,所述子区域对应的分辨率为固定分辨率,其中,第(K-1)子区域与所述热点区域的中心之间的最短距离小于第K子区域与所述热点区域的中心之间的最短距离,K为大于等于2的正整数;所述渐变分辨率确定子模块371包括:Optionally, the second area includes K sub-areas, the resolution of the gradation is a resolution that varies discretely, and the resolution corresponding to the sub-area is a fixed resolution, where the (K-1) The shortest distance between the sub-region and the center of the hot spot region is smaller than the shortest distance between the K-th sub-region and the center of the hot-spot region, and K is a positive integer greater than or equal to 2; the gradient resolution determination sub-module 371 include:
第三距离获取单元3716,用于获取所述第二区域中的目标图像位置与所述热点区域 的中心之间的距离;a third distance obtaining unit 3716, configured to acquire a target image location and the hotspot area in the second area The distance between the centers;
子区域确定单元3717,用于根据所述距离确定所述目标图像位置所在的子区域;a sub-area determining unit 3717, configured to determine, according to the distance, a sub-area where the target image position is located;
第四分辨率确定单元3718,用于根据分辨率与所述子区域之间的对应关系确定所述目标图像位置的分辨率。The fourth resolution determining unit 3718 is configured to determine a resolution of the target image position according to a correspondence between the resolution and the sub-region.
可选地,所述分辨率与所述子区域之间的对应关系包括:所述目标视频图像的第1子区域对应的分辨率为所述第一分辨率的1/L或所述第一分辨率与第一预设值的差值,其中L为大于等于1的整数。Optionally, the correspondence between the resolution and the sub-region includes: a resolution corresponding to the first sub-region of the target video image is 1/L of the first resolution or the first The difference between the resolution and the first preset value, where L is an integer greater than or equal to 1.
可选地,所述分辨率与所述子区域之间的对应关系还包括:所述目标视频图像的第K子区域对应的分辨率为所述第(K-1)子区域对应的分辨率的1/M,M为大于1的整数;或所述目标视频图像的第K子区域对应的分辨率为所述目标视频图像的第(K-1)子区域对应的分辨率与第二预设值的差值。Optionally, the mapping between the resolution and the sub-region further includes: a resolution corresponding to a Kth sub-region of the target video image is a resolution corresponding to the (K-1)th sub-region 1/M, M is an integer greater than 1; or the resolution corresponding to the Kth sub-region of the target video image is the resolution corresponding to the (K-1)th sub-region of the target video image and the second pre- Set the difference in value.
需要说明的是,各个模块的实现还可以对应参照图3所示的方法实施例的相应描述。It should be noted that the implementation of each module may also correspond to the corresponding description of the method embodiment shown in FIG. 3 .
在图10所述的实施例中,图像处理服务器可以根据目标视频图像的热点区域,将目标视频图像区域划分为第一区域和第二区域,使得热点区域在第一区域中,然后以第一分辨率对第一区域进行处理,以渐变的分辨率对第二区域进行处理,最后将处理后的目标视频图像发送给用户的播放终端,其中,第一分辨率大于第二区域的所有分辨率,第二区域的分辨率随着与热点区域的距离增加分辨率减小,在同等带宽的情况下,通过对视频图像的处理使热点区域的分辨率更高,而其他区域的分辨率更低,使得处理后的视频图像的数据量小于原始视频图像的数据量将有用的视频数据即用户想看的视频数据传输给用户的播放终端,保证用户的观看体验,节省带宽成本。In the embodiment described in FIG. 10, the image processing server may divide the target video image area into the first area and the second area according to the hotspot area of the target video image, such that the hotspot area is in the first area, and then the first The resolution processes the first area, processes the second area with a gradual resolution, and finally sends the processed target video image to the user's playing terminal, wherein the first resolution is greater than all resolutions of the second area The resolution of the second region decreases with increasing distance from the hotspot region. In the case of the same bandwidth, the resolution of the hotspot region is higher by processing the video image, and the resolution of other regions is lower. The data amount of the processed video image is smaller than the data amount of the original video image, and the useful video data, that is, the video data that the user wants to watch, is transmitted to the user's playing terminal, thereby ensuring the user's viewing experience and saving bandwidth cost.
请参见图11,图11是本发明实施例提供的另一种图像处理的装置的结构示意图,该装置包括处理器41、存储器42以及通信接口43。处理器41连接到存储器42和通信接口43,例如处理器41可以通过总线连接到存储器42和通信接口43。Referring to FIG. 11, FIG. 11 is a schematic structural diagram of another apparatus for image processing according to an embodiment of the present invention. The apparatus includes a processor 41, a memory 42, and a communication interface 43. The processor 41 is connected to the memory 42 and the communication interface 43, for example, the processor 41 can be connected to the memory 42 and the communication interface 43 via a bus.
处理器41被配置为支持所述图像处理的装置执行图3所述的图像处理的方法中相应的功能。该处理器41可以是中央处理器(英文:central processing unit,CPU),网络处理器(英文:network processor,NP),硬件芯片或者其任意组合。上述硬件芯片可以是专用集成电路(英文:application-specific integrated circuit,ASIC),可编程逻辑器件(英文:programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(英文:complex programmable logic device,CPLD),现场可编程逻辑门阵列(英文:field-programmable gate array,FPGA),通用阵列逻辑(英文:generic array logic,GAL)或其任意组合。The processor 41 is configured to support a corresponding function in the method of image processing performed by the apparatus of the image processing described in FIG. The processor 41 can be a central processing unit (CPU), a network processor (in English: network processor, NP), a hardware chip, or any combination thereof. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The above PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), and a general array logic (GAL). Or any combination thereof.
存储器42用于存储程序代码等。存储器42可以包括易失性存储器(英文:volatile memory),例如随机存取存储器(英文:random access memory,缩写:RAM);存储器72也可以包括非易失性存储器(英文:non-volatile memory),例如只读存储器(英文:read-only memory,缩写:ROM),快闪存储器(英文:flash memory),硬盘(英文:hard disk drive,缩写:HDD)或固态硬盘(英文:solid-state drive,缩写:SSD);存储器42还可以包括上述种类的存储器的组合。The memory 42 is used to store program codes and the like. The memory 42 may include a volatile memory (English: volatile memory), such as a random access memory (English: random access memory, abbreviation: RAM); the memory 72 may also include a non-volatile memory (English: non-volatile memory) For example, read-only memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory), hard disk (English: hard disk drive, abbreviation: HDD) or solid state drive (English: solid-state drive , abbreviation: SSD); the memory 42 may also include a combination of the above types of memories.
通信接口43用于接收和发送数据。 Communication interface 43 is used to receive and transmit data.
处理器41可以调用所述程序代码以执行以下操作:The processor 41 can invoke the program code to perform the following operations:
以第一分辨率对目标视频图像的第一区域进行处理,所述第一区域中包含所述目标视频图像的热点区域;Processing a first region of the target video image at a first resolution, the first region including a hotspot region of the target video image;
以渐变的分辨率对所述目标视频图像的第二区域进行处理,所述渐变的分辨率小于所述第一分辨率,其中,所述第二区域中距离所述热点区域越近的图像位置对应的分辨率越高,所述第二区域位于所述第一区域外,所述第二区域与所述第一区域构成所述目标视频图像;Processing a second region of the target video image with a gradient resolution that is less than the first resolution, wherein an image location in the second region that is closer to the hotspot region The higher the corresponding resolution, the second area is located outside the first area, and the second area and the first area constitute the target video image;
通过通信接口43将处理后的目标视频图像发送至播放终端。The processed target video image is transmitted to the playback terminal through the communication interface 43.
可选地,处理器41以第一分辨率对所述目标视频图像的第一区域进行处理之前,还用于:Optionally, before processing, by the processor 41, the first area of the target video image at a first resolution, the processor 41 is further configured to:
确定所述目标视频图像的热点区域;Determining a hot spot area of the target video image;
根据所述热点区域确定所述目标视频图像的第一区域和所述第二区域。Determining a first region and the second region of the target video image based on the hotspot region.
可选地,处理器41根据所述热点区域确定所述目标视频图像的第一区域,具体包括:Optionally, the determining, by the processor 41, the first area of the target video image according to the hotspot area, specifically:
确定所述热点区域的中心;Determining a center of the hot spot area;
将以所述中心为圆心和第一预设距离为半径的区域确定为所述目标视频图像的第一区域。An area having a center of the center and a radius of the first predetermined distance is determined as the first area of the target video image.
可选地,处理器41根据所述热点区域确定所述目标视频图像的第一区域,具体包括:Optionally, the determining, by the processor 41, the first area of the target video image according to the hotspot area, specifically:
将包含所述热点区域的最小规则图形区域确定为所述目标视频图像的第一区域。A minimum regular graphics area containing the hotspot area is determined as the first area of the target video image.
可选地,处理器41以第一分辨率对目标视频图像的第一区域进行处理之前,还用于:Optionally, before the processor 41 processes the first area of the target video image with the first resolution, the processor 41 is further configured to:
确定与所述播放终端之间的传输带宽;Determining a transmission bandwidth with the playing terminal;
根据所述第一区域的区域大小、所述第二区域的区域大小以及所述传输带宽确定所述第一分辨率和所述渐变的分辨率。Determining the resolution of the first resolution and the gradation according to an area size of the first area, an area size of the second area, and the transmission bandwidth.
可选地,处理器41根据所述第一区域的区域大小、所述第二区域的区域大小以及所述传输带宽确定所述第一分辨率和所述渐变的分辨率,具体包括:Optionally, the processor 41 determines the resolution of the first resolution and the gradation according to the area size of the first area, the area size of the second area, and the transmission bandwidth, and specifically includes:
根据所述第一区域的区域大小、所述第二区域的区域大小以及所述传输带宽确定所述第一分辨率;Determining the first resolution according to an area size of the first area, an area size of the second area, and the transmission bandwidth;
根据所述第二区域中的目标图像位置与所述热点区域的中心之间的距离确定所述第二区域中的目标图像位置的分辨率。A resolution of a target image position in the second region is determined according to a distance between a target image position in the second region and a center of the hot spot region.
可选地,处理器41根据所述第二区域中的目标图像位置与所述热点区域的中心之间的距离确定所述第二区域中的目标图像位置的分辨率,具体包括:Optionally, the determining, by the processor 41, the resolution of the target image location in the second region according to the distance between the target image location in the second region and the center of the hotspot region, specifically including:
获取所述第二区域中的目标图像位置与所述热点区域的中心之间的距离;Obtaining a distance between a target image location in the second region and a center of the hotspot region;
根据渐变函数确定所述第二区域中的目标图像位置的分辨率,其中,所述渐变函数为表征所述分辨率与所述距离之间的对应关系的函数。A resolution of a target image position in the second region is determined according to a gradation function, wherein the gradation function is a function that characterizes a correspondence between the resolution and the distance.
可选地,所述第二区域包括第三区域和第四区域,其中,所述第三区域与所述热点区域的中心之间的最短距离小于所述第四区域与所述热点区域的中心之间的最短距离;处理器41根据所述第二区域中的目标图像位置与所述热点区域的中心之间的距离确定所述第二区域中的目标图像位置的分辨率,具体包括:Optionally, the second area includes a third area and a fourth area, wherein a shortest distance between the third area and a center of the hotspot area is smaller than a center of the fourth area and the hotspot area The resolution of the target image position in the second region is determined by the processor 41 according to the distance between the target image location in the second region and the center of the hotspot region, and specifically includes:
获取所述第三区域中的目标图像位置与所述热点区域的中心之间的距离; Obtaining a distance between a target image location in the third region and a center of the hotspot region;
根据渐变函数确定所述第三区域中的目标图像位置的分辨率,其中,所述渐变函数为表征所述分辨率与所述距离之间的对应关系的函数;Determining a resolution of a target image position in the third region according to a gradation function, wherein the gradation function is a function characterizing a correspondence between the resolution and the distance;
将第二分辨率确定为所述第四区域中的目标图像位置的分辨率,其中,所述第二分辨率小于等于第三区域中的目标图像位置的最小分辨率,所述第二分辨率为固定分辨率。Determining a second resolution as a resolution of a target image position in the fourth region, wherein the second resolution is less than or equal to a minimum resolution of a target image position in the third region, the second resolution For fixed resolution.
可选地,所述第二分辨率为所述第一分辨率的1/N,N为大于1的整数;或者所述第二分辨率为第三区域中的目标图像位置的最小分辨率的1/P,P为大于等于1的整数。Optionally, the second resolution is 1/N of the first resolution, N is an integer greater than 1; or the second resolution is a minimum resolution of a target image location in the third region. 1/P, P is an integer greater than or equal to 1.
可选地,所述渐变函数包括:抛物线函数、椭圆函数、一次递减函数。Optionally, the gradation function comprises: a parabolic function, an elliptic function, and a declining function.
可选地,所述第二区域包括K个子区域,所述渐变的分辨率为呈离散性变化的分辨率,所述子区域对应的分辨率为固定分辨率,其中,第(K-1)子区域与所述热点区域的中心之间的最短距离小于第K子区域与所述热点区域的中心之间的最短距离,K为大于等于2的正整数;处理器41根据所述第二区域中的目标图像位置与所述热点区域的中心之间的距离确定所述第二区域中的目标图像位置的分辨率,具体包括:Optionally, the second area includes K sub-areas, the resolution of the gradation is a resolution that varies discretely, and the resolution corresponding to the sub-area is a fixed resolution, where the (K-1) The shortest distance between the sub-area and the center of the hot spot area is smaller than the shortest distance between the K-th sub-area and the center of the hot-spot area, K is a positive integer greater than or equal to 2; the processor 41 is based on the second area The distance between the target image location and the center of the hotspot region determines the resolution of the target image location in the second region, and specifically includes:
获取所述第二区域中的目标图像位置与所述热点区域的中心之间的距离;Obtaining a distance between a target image location in the second region and a center of the hotspot region;
根据所述距离确定所述目标图像位置所在的子区域;Determining, according to the distance, a sub-area where the target image position is located;
根据分辨率与所述子区域之间的对应关系确定所述目标图像位置的分辨率。A resolution of the target image position is determined according to a correspondence between the resolution and the sub-region.
可选地,所述分辨率与所述子区域之间的对应关系包括:所述目标视频图像的第1子区域对应的分辨率为所述第一分辨率的1/L或所述第一分辨率与第一预设值的差值,其中,L为大于1的整数。Optionally, the correspondence between the resolution and the sub-region includes: a resolution corresponding to the first sub-region of the target video image is 1/L of the first resolution or the first The difference between the resolution and the first preset value, where L is an integer greater than one.
可选地,所述分辨率与所述子区域之间的对应关系还包括:所述目标视频图像的第K子区域对应的分辨率为所述第(K-1)子区域对应的分辨率的1/M,M为大于1的整数;或所述目标视频图像的第K子区域对应的分辨率为所述目标视频图像的第(K-1)子区域对应的分辨率与第二预设值的差值。Optionally, the mapping between the resolution and the sub-region further includes: a resolution corresponding to a Kth sub-region of the target video image is a resolution corresponding to the (K-1)th sub-region 1/M, M is an integer greater than 1; or the resolution corresponding to the Kth sub-region of the target video image is the resolution corresponding to the (K-1)th sub-region of the target video image and the second pre- Set the difference in value.
可选地,处理器41还用于:Optionally, the processor 41 is further configured to:
确定传输所述目标视频图像所需的目标带宽及与所述播放终端之间的传输带宽;Determining a target bandwidth required for transmitting the target video image and a transmission bandwidth with the playback terminal;
在所述目标带宽大于所述传输带宽的情况下,执行所述以第一分辨率对目标视频图像的第一区域进行处理的步骤。In the case that the target bandwidth is greater than the transmission bandwidth, the step of processing the first region of the target video image at the first resolution is performed.
需要说明的是,各个操作的实现还可以对应参照图3所示的方法实施例的相应描述。It should be noted that the implementation of each operation may also correspond to the corresponding description of the method embodiment shown in FIG. 3 .
本发明实施例提供的还提供一种计算机存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被图像处理的装置执行时使所述图像处理的装置执行如前述实施例所述的方法。The embodiment of the present invention further provides a computer storage medium storing a computer program, the computer program comprising program instructions, when the image processing device performs the image processing The apparatus performs the method as described in the previous embodiments.
本发明实施例提供的还提供一种计算机程序,包括程序指令,所述程序指令当被图像处理的装置执行时用于执行如前述实施例所述的方法。The embodiment of the present invention further provides a computer program, including program instructions, which are used to execute the method as described in the foregoing embodiments when executed by an image processing apparatus.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。 One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Claims (19)

  1. 一种图像处理的方法,其特征在于,包括:A method of image processing, comprising:
    以第一分辨率对目标视频图像的第一区域进行处理,所述第一区域中包含所述目标视频图像的热点区域;Processing a first region of the target video image at a first resolution, the first region including a hotspot region of the target video image;
    以渐变的分辨率对所述目标视频图像的第二区域进行处理,所述渐变的分辨率小于所述第一分辨率,其中,所述第二区域中距离所述热点区域越近的位置处的图像对应的分辨率越高,所述第二区域位于所述第一区域外,所述第二区域与所述第一区域构成所述目标视频图像;Processing a second region of the target video image with a gradient resolution that is less than the first resolution, wherein the second region is closer to the hotspot region The higher the resolution corresponding to the image, the second area is located outside the first area, and the second area and the first area constitute the target video image;
    将处理后的目标视频图像发送至播放终端。The processed target video image is sent to the playback terminal.
  2. 如权利要求1所述的方法,其特征在于,所述以第一分辨率对所述第一区域进行处理之前还包括:The method according to claim 1, wherein the processing of the first area at the first resolution further comprises:
    确定所述目标视频图像的热点区域;Determining a hot spot area of the target video image;
    根据所述热点区域确定所述目标视频图像的第一区域和所述第二区域。Determining a first region and the second region of the target video image based on the hotspot region.
  3. 如权利要求2所述的方法,其特征在于,所述根据所述热点区域确定所述目标视频图像的第一区域包括:The method of claim 2, wherein the determining the first region of the target video image according to the hotspot region comprises:
    确定所述热点区域的中心;Determining a center of the hot spot area;
    将以所述中心为圆心和第一预设距离为半径的区域确定为所述目标视频图像的第一区域。An area having a center of the center and a radius of the first predetermined distance is determined as the first area of the target video image.
  4. 如权利要求2所述的方法,其特征在于,所述根据所述热点区域确定所述目标视频图像的第一区域包括:The method of claim 2, wherein the determining the first region of the target video image according to the hotspot region comprises:
    将包含所述热点区域的最小规则图形区域确定为所述目标视频图像的第一区域。A minimum regular graphics area containing the hotspot area is determined as the first area of the target video image.
  5. 如权利要求1-4任一项所述的方法,其特征在于,所述渐变的分辨率包括呈连续性变化的分辨率或呈离散性变化的分辨率。A method according to any one of claims 1 to 4, wherein the resolution of the gradation comprises a resolution that varies continuously or a resolution that varies discretely.
  6. 如权利要求1-5任一项所述的方法,其特征在于,所述以第一分辨率对目标视频图像的第一区域进行处理之前还包括:The method according to any one of claims 1 to 5, wherein the processing of the first region of the target video image at the first resolution further comprises:
    确定与所述播放终端之间的传输带宽;Determining a transmission bandwidth with the playing terminal;
    根据所述第一区域的区域大小、所述第二区域的区域大小以及所述传输带宽确定所述第一分辨率和所述渐变的分辨率。Determining the resolution of the first resolution and the gradation according to an area size of the first area, an area size of the second area, and the transmission bandwidth.
  7. 如权利要求6所述的方法,其特征在于,所述根据所述第一区域的区域大小、所述第二区域的区域大小以及所述传输带宽确定所述渐变的分辨率包括:The method according to claim 6, wherein the determining the resolution of the gradation according to the size of the area of the first area, the size of the area of the second area, and the transmission bandwidth comprises:
    根据所述第二区域中的目标图像位置与所述热点区域的中心之间的距离确定所述第 二区域中的目标图像位置的分辨率。Determining the number according to a distance between a target image position in the second region and a center of the hot spot region The resolution of the target image position in the two regions.
  8. 如权利要求7所述的方法,其特征在于,所述根据所述第二区域中的目标图像位置与所述热点区域的中心之间的距离确定所述第二区域中的目标图像位置的分辨率包括:The method according to claim 7, wherein said determining a resolution of a target image position in said second region based on a distance between a target image position in said second region and a center of said hot spot region Rates include:
    获取所述第二区域中的目标图像位置与所述热点区域的中心之间的距离;Obtaining a distance between a target image location in the second region and a center of the hotspot region;
    根据渐变函数确定所述第二区域中的目标图像位置的分辨率,其中,所述渐变函数为表征所述分辨率与所述距离之间的对应关系的函数。A resolution of a target image position in the second region is determined according to a gradation function, wherein the gradation function is a function that characterizes a correspondence between the resolution and the distance.
  9. 如权利要求7所述的方法,其特征在于,所述第二区域包括第三区域和第四区域,其中,所述第三区域与所述热点区域的中心之间的最短距离小于所述第四区域与所述热点区域的中心之间的最短距离;The method of claim 7 wherein said second region comprises a third region and a fourth region, wherein a shortest distance between said third region and a center of said hot spot region is less than said The shortest distance between the four regions and the center of the hotspot region;
    所述根据所述第二区域中的目标图像位置与所述热点区域的中心之间的距离确定所述第二区域中的目标图像位置的分辨率包括:Determining the resolution of the target image location in the second region according to the distance between the target image location in the second region and the center of the hotspot region includes:
    获取所述第三区域中的目标图像位置与所述热点区域的中心之间的距离;Obtaining a distance between a target image location in the third region and a center of the hotspot region;
    根据渐变函数确定所述第三区域中的目标图像位置的分辨率,其中,所述渐变函数为表征所述分辨率与所述距离之间的对应关系的函数;Determining a resolution of a target image position in the third region according to a gradation function, wherein the gradation function is a function characterizing a correspondence between the resolution and the distance;
    将第二分辨率确定为所述第四区域中的目标图像位置的分辨率,其中,所述第二分辨率小于等于第三区域中的目标图像位置的最小分辨率,所述第二分辨率为固定分辨率。Determining a second resolution as a resolution of a target image position in the fourth region, wherein the second resolution is less than or equal to a minimum resolution of a target image position in the third region, the second resolution For fixed resolution.
  10. 如权利要求9所述的方法,其特征在于,所述第二分辨率为所述第一分辨率的1/N,N为大于1的整数;或者The method of claim 9, wherein the second resolution is 1/N of the first resolution, and N is an integer greater than 1; or
    所述第二分辨率为第三区域中的目标图像位置的最小分辨率的1/P,P为大于等于1的整数。The second resolution is 1/P of the minimum resolution of the target image position in the third region, and P is an integer greater than or equal to 1.
  11. 如权利要求8-10任一项所述的方法,其特征在于,所述渐变函数包括:The method of any of claims 8-10, wherein the gradation function comprises:
    抛物线函数、椭圆函数或一次递减函数。A parabolic function, an elliptic function, or a declining function.
  12. 如权利要求7所述的方法,其特征在于,所述第二区域包括K个子区域,所述渐变的分辨率为呈离散性变化的分辨率,所述子区域对应的分辨率为固定分辨率,其中,第(K-1)子区域与所述热点区域的中心之间的最短距离小于第K子区域与所述热点区域的中心之间的最短距离,K为大于等于2的正整数;The method of claim 7, wherein the second region comprises K sub-regions, the resolution of the gradation is a resolution that varies discretely, and the resolution corresponding to the sub-region is a fixed resolution Wherein the shortest distance between the (K-1)th sub-region and the center of the hotspot region is smaller than the shortest distance between the Kth sub-region and the center of the hotspot region, and K is a positive integer greater than or equal to 2;
    所述根据所述第二区域中的目标图像位置与所述热点区域的中心之间的距离确定所述第二区域中的目标图像位置的分辨率包括:Determining the resolution of the target image location in the second region according to the distance between the target image location in the second region and the center of the hotspot region includes:
    获取所述第二区域中的目标图像位置与所述热点区域的中心之间的距离;Obtaining a distance between a target image location in the second region and a center of the hotspot region;
    根据所述距离确定所述目标图像位置所在的子区域;Determining, according to the distance, a sub-area where the target image position is located;
    根据分辨率与所述子区域之间的对应关系确定所述目标图像位置的分辨率。A resolution of the target image position is determined according to a correspondence between the resolution and the sub-region.
  13. 如权利要求12所述的方法,其特征在于,所述分辨率与所述子区域之间的对应 关系包括:The method of claim 12, wherein the resolution corresponds to a correspondence between the sub-regions Relationships include:
    所述目标视频图像的第1子区域对应的分辨率为所述第一分辨率的1/L或所述第一分辨率与第一预设值的差值,其中,L为大于1的整数。The resolution corresponding to the first sub-region of the target video image is 1/L of the first resolution or a difference between the first resolution and a first preset value, where L is an integer greater than 1. .
  14. 如权利要求13所述的方法,其特征在于,所述分辨率与所述子区域之间的对应关系还包括:The method according to claim 13, wherein the correspondence between the resolution and the sub-region further comprises:
    所述目标视频图像的第K子区域对应的分辨率为所述第(K-1)子区域对应的分辨率的1/M,M为大于1的整数;或The resolution corresponding to the Kth sub-region of the target video image is 1/M of the resolution corresponding to the (K-1)th sub-region, and M is an integer greater than 1; or
    所述目标视频图像的第K子区域对应的分辨率为所述目标视频图像的第(K-1)子区域对应的分辨率与第二预设值的差值。The resolution corresponding to the Kth sub-region of the target video image is a difference between a resolution corresponding to the (K-1)th sub-region of the target video image and a second preset value.
  15. 如权利要求1-14任一项所述的方法,其特征在于,所述方法还包括:The method of any of claims 1 to 14, wherein the method further comprises:
    确定传输所述目标视频图像所需的目标带宽及与所述播放终端之间的传输带宽;Determining a target bandwidth required for transmitting the target video image and a transmission bandwidth with the playback terminal;
    在所述目标带宽大于所述传输带宽的情况下,执行所述以第一分辨率对目标视频图像的第一区域进行处理的步骤。In the case that the target bandwidth is greater than the transmission bandwidth, the step of processing the first region of the target video image at the first resolution is performed.
  16. 一种图像处理的装置,其特征在于,包括:An apparatus for image processing, comprising:
    第一区域处理模块,用于以第一分辨率对目标视频图像的第一区域进行处理,所述第一区域中包含所述目标视频图像的热点区域;a first area processing module, configured to process, in a first resolution, a first area of the target video image, where the first area includes a hotspot area of the target video image;
    第二区域处理模块,用于以渐变的分辨率对所述目标视频图像的第二区域进行处理,所述渐变的分辨率小于所述第一分辨率,其中,所述第二区域中距离所述热点区域越近的位置处的图像对应的分辨率越高,所述第二区域位于所述第一区域外,所述第二区域与所述第一区域构成所述目标视频图像;a second area processing module, configured to process the second area of the target video image with a gradual resolution, the resolution of the gradation being smaller than the first resolution, wherein the distance in the second area is The higher the resolution corresponding to the image at the position closer to the hot spot region, the second region is located outside the first region, and the second region and the first region constitute the target video image;
    发送模块,用于将处理后的目标视频图像发送至播放终端。And a sending module, configured to send the processed target video image to the playing terminal.
  17. 一种图像处理的装置,其特征在于,包括处理器、存储器以及通信接口,所述处理器、存储器和通信接口相互连接,其中,所述通信接口用于接收和发送数据,所述存储器用于存储程序代码,所述处理器用于调用所述程序代码,执行以下操作:An apparatus for image processing, comprising: a processor, a memory, and a communication interface, wherein the processor, the memory, and the communication interface are connected to each other, wherein the communication interface is for receiving and transmitting data, and the memory is used for The program code is stored, and the processor is configured to invoke the program code to perform the following operations:
    以第一分辨率对目标视频图像的第一区域进行处理,所述第一区域中包含所述目标视频图像的热点区域;Processing a first region of the target video image at a first resolution, the first region including a hotspot region of the target video image;
    以渐变的分辨率对所述目标视频图像的第二区域进行处理,所述渐变的分辨率小于所述第一分辨率,其中,所述第二区域中距离所述热点区域越近的位置处的图像对应的分辨率越高,所述第二区域位于所述第一区域外,所述第二区域与所述第一区域构成所述目标视频图像;Processing a second region of the target video image with a gradient resolution that is less than the first resolution, wherein the second region is closer to the hotspot region The higher the resolution corresponding to the image, the second area is located outside the first area, and the second area and the first area constitute the target video image;
    将处理后的目标视频图像发送至播放终端。The processed target video image is sent to the playback terminal.
  18. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被图像处理的装置执行时使所述图像处理的 装置执行如权利要求1-15任一项所述的方法。A computer storage medium, characterized in that the computer storage medium stores a computer program, the computer program comprising program instructions, the program instructions causing the image processing when executed by an image processing device The apparatus performs the method of any of claims 1-15.
  19. 一种计算机程序,其特征在于,包括程序指令,所述程序指令当被图像处理的装置执行时用于执行如权利要求1-15任一项所述的方法。 A computer program, comprising program instructions for performing the method of any of claims 1-15 when executed by an image processing device.
PCT/CN2017/080645 2016-12-26 2017-04-14 Image processing method and device WO2018120519A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201780062040.0A CN109804409A (en) 2016-12-26 2017-04-14 The method and apparatus of image procossing

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611220993.9 2016-12-26
CN201611220993 2016-12-26

Publications (1)

Publication Number Publication Date
WO2018120519A1 true WO2018120519A1 (en) 2018-07-05

Family

ID=62706644

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/080645 WO2018120519A1 (en) 2016-12-26 2017-04-14 Image processing method and device

Country Status (2)

Country Link
CN (1) CN109804409A (en)
WO (1) WO2018120519A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020228676A1 (en) * 2019-05-16 2020-11-19 阿里巴巴集团控股有限公司 Image generation method and device, image display method and device
CN113408440A (en) * 2021-06-24 2021-09-17 展讯通信(上海)有限公司 Video data jam detection method, device, equipment and storage medium
US11477426B2 (en) * 2020-10-26 2022-10-18 Avaya Management L.P. Selective image broadcasting in a video conference

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111667411A (en) * 2020-06-12 2020-09-15 深圳天度物联信息技术有限公司 Image transmission method and device, electronic equipment and storage medium
CN112911191B (en) * 2021-01-28 2023-03-24 联想(北京)有限公司 Video call quality adjusting method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655984A (en) * 2008-05-12 2010-02-24 美国西门子医疗解决公司 System for adaptively processing medical image data
US20100128983A1 (en) * 2008-11-25 2010-05-27 Canon Kabushiki Kaisha Imaging system and imaging method
CN102915521A (en) * 2012-08-30 2013-02-06 中兴通讯股份有限公司 Method and device for processing mobile terminal images
US20130219012A1 (en) * 2012-02-22 2013-08-22 Citrix Systems, Inc. Hierarchical Display
US20140136686A1 (en) * 2012-11-09 2014-05-15 Institute For Information Industry Dynamic resolution regulating system and dynamic resolution regulating method
CN105635624A (en) * 2014-10-27 2016-06-01 华为技术有限公司 Video image processing method, device and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6829391B2 (en) * 2000-09-08 2004-12-07 Siemens Corporate Research, Inc. Adaptive resolution system and method for providing efficient low bit rate transmission of image data for distributed applications
CN104159129B (en) * 2014-08-08 2015-06-17 北京大学 Method for progressively transmitting partial splitting blocks under remote sensing data limited bandwidth

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655984A (en) * 2008-05-12 2010-02-24 美国西门子医疗解决公司 System for adaptively processing medical image data
US20100128983A1 (en) * 2008-11-25 2010-05-27 Canon Kabushiki Kaisha Imaging system and imaging method
US20130219012A1 (en) * 2012-02-22 2013-08-22 Citrix Systems, Inc. Hierarchical Display
CN102915521A (en) * 2012-08-30 2013-02-06 中兴通讯股份有限公司 Method and device for processing mobile terminal images
US20140136686A1 (en) * 2012-11-09 2014-05-15 Institute For Information Industry Dynamic resolution regulating system and dynamic resolution regulating method
CN105635624A (en) * 2014-10-27 2016-06-01 华为技术有限公司 Video image processing method, device and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020228676A1 (en) * 2019-05-16 2020-11-19 阿里巴巴集团控股有限公司 Image generation method and device, image display method and device
US11477426B2 (en) * 2020-10-26 2022-10-18 Avaya Management L.P. Selective image broadcasting in a video conference
CN113408440A (en) * 2021-06-24 2021-09-17 展讯通信(上海)有限公司 Video data jam detection method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN109804409A (en) 2019-05-24

Similar Documents

Publication Publication Date Title
WO2018120519A1 (en) Image processing method and device
US11601699B2 (en) Predictive content delivery for video streaming services
US11418755B2 (en) Adaptive resolution in software applications based on dynamic eye tracking
TWI619088B (en) Image data processing system and associated methods for processing panorama images and image blending using the same
US11589110B2 (en) Digital media system
CN109302619A (en) A kind of information processing method and device
WO2019128667A1 (en) Video playback method and terminal, server and storage medium
US10529122B2 (en) Information processing apparatus, information processing method, and storage medium
AU2017317839B2 (en) Panoramic video compression method and device
US10863230B1 (en) Content stream overlay positioning
JP6224516B2 (en) Encoding method and encoding program
CN106162232A (en) video playing control method and device
CN111629146B (en) Shooting parameter adjusting method, shooting parameter adjusting device, shooting parameter adjusting equipment and storage medium
Seo et al. Real-time panoramic video streaming system with overlaid interface concept for social media
JP2019149785A (en) Video conversion device and program
KR102389335B1 (en) Apparatus and method for displaying videoes of a plurality of broadcast channels
US20190253772A1 (en) Selective Communication of a Vector Graphics Format Version of a Video Content Item
CN113810755B (en) Panoramic video preview method and device, electronic equipment and storage medium
US11134236B2 (en) Image processing device and system
CN111885417A (en) VR video playing method, device, equipment and storage medium
CN117392244A (en) Image processing method, device, electronic equipment and storage medium
CN117132453A (en) Image processing method, device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17885807

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17885807

Country of ref document: EP

Kind code of ref document: A1