WO2017206606A1 - 图片的生成方法及装置 - Google Patents
图片的生成方法及装置 Download PDFInfo
- Publication number
- WO2017206606A1 WO2017206606A1 PCT/CN2017/080863 CN2017080863W WO2017206606A1 WO 2017206606 A1 WO2017206606 A1 WO 2017206606A1 CN 2017080863 W CN2017080863 W CN 2017080863W WO 2017206606 A1 WO2017206606 A1 WO 2017206606A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- picture
- sub
- generated
- pixel
- information
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000003068 static effect Effects 0.000 claims description 33
- 238000007781 pre-processing Methods 0.000 claims description 18
- 230000006835 compression Effects 0.000 description 14
- 238000007906 compression Methods 0.000 description 14
- 230000015572 biosynthetic process Effects 0.000 description 11
- 238000003786 synthesis reaction Methods 0.000 description 11
- 230000002194 synthesizing effect Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
- H04N19/423—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
- H04N19/426—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements using memory downsizing methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4038—Image mosaicing, e.g. composing plane images from plane sub-images
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/85—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/5866—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5016—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/136—Incoming video signal characteristics or properties
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/117—Filters, e.g. for pre-processing or post-processing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/129—Scanning of coding units, e.g. zig-zag scan of transform coefficients or flexible macroblock ordering [FMO]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/162—User input
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/174—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a slice, e.g. a line of blocks or a group of blocks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/176—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/46—Embedding additional information in the video signal during the compression process
Definitions
- the present application relates to the field of image processing technologies, and in particular, to a method and an apparatus for generating a picture.
- the conventional technology when generating a target picture, first load or generate a base map in the memory; then draw more picture information on the base map until a complete picture information is formed in the memory; finally, according to the complete picture in the memory Information to generate a target image.
- the target image is relatively large, the above-mentioned complete picture information saved in the memory will occupy a large amount of memory space. For example, when the target picture is a true color picture of 1024x1024, it will occupy more than 4 megabytes of memory space. The earth consumes the memory resources of the computer.
- the embodiment of the present application provides a method and a device for generating a picture, which can achieve the purpose of saving memory resources of a computer.
- a method for generating a picture comprising:
- a picture generating apparatus comprising:
- a receiving unit configured to receive a picture generation request, where the picture generation request includes a picture format of a picture to be generated
- An obtaining unit configured to acquire a corresponding static picture according to the picture generation request received by the receiving unit
- a determining unit configured to determine, according to the picture format, multiple to-be-generated sub-pictures of the to-be-generated picture
- a sorting unit configured to acquire description information of each sub-picture to be generated determined by the determining unit, and sort the plurality of sub-pictures to be generated according to the description information
- a generating unit configured to: in the first one of the plurality of to-be-generated sub-pictures that are sorted by the sorting unit, according to the description information of the first sub-picture to be generated, a preset image generating algorithm, and The static picture generates a first sub-picture;
- a pre-processing unit configured to pre-process the first sub-picture generated by the generating unit, and add the pre-processed first sub-picture to a picture file that conforms to the picture format;
- the acquiring unit is further configured to generate, preprocess, and perform, in sequence, on the other sub-pictures to be generated in the plurality of sub-pictures to be generated, according to the manner of generating, pre-processing, and adding the first sub-picture. Add an operation until the picture to be generated is obtained.
- the method and device for generating a picture determine the description information of each sub-picture to be generated of the picture to be generated according to the picture format of the picture to be generated, and sort the sub-pictures to be generated according to the description information; Sequentially generate each sub-picture, wherein In the process of sequentially generating each sub-picture in order, each sub-picture is pre-processed and added to the picture file; when all the sub-pictures are saved in the picture file, all the sub-pictures are formed. The image to be generated.
- the present application sequentially generates each sub-picture in order, that is, only needs to save information of one sub-picture in the memory, thereby avoiding the need to save the complete information of the picture to be generated in the memory in the prior art.
- FIG. 1 is a schematic diagram of a picture synthesizing apparatus provided by the present application.
- FIG. 2 is a flowchart of a method for generating a picture according to an embodiment of the present application
- FIG. 3 is a schematic diagram of a sub-picture to be generated provided by the present application.
- FIG. 4 is a schematic diagram of a device for generating a picture according to another embodiment of the present application.
- the method and device for generating a picture provided by the application are suitable for generating a picture occupying a large-capacity storage space, and are particularly suitable for generating a picture occupying a large-capacity storage space on a server, where the server corresponds to multiple clients, that is, the server.
- the picture format of the picture generated by the above generation method includes, but is not limited to, JPEG, TIFF, RAW, BMP, GIF, PNG, and the like.
- the picture material storage module 101 is configured to store still pictures, such as a background picture and a foreground picture. And static text, etc.; it can be understood that when the picture synthesizing device generates different formats of pictures for different clients, the above static pictures are generally shared.
- the picture generation service module 102 is configured to receive a picture generation request sent by the client, where the picture generation request may include a picture format of the picture to be generated, and read the corresponding static picture from the picture material storage module 101 according to the picture generation request.
- the image generation request sent by the client to the image synthesizing device may further include the name of the first image. And the name of the second picture, so that the first picture and the second picture are obtained from the picture material storage module 101 by the picture generation service module 102 according to the name of the first picture and the name of the second picture.
- the synthesis mode decision module 103 is configured to determine, according to the picture format of the picture to be generated, whether the picture to be generated can be generated by using a block; if the picture to be generated can be generated by the block, the description information of the picture to be generated after the block is also determined.
- the picture to be generated after the block is also referred to as a sub-picture to be generated, and the description information of the sub-picture to be generated may include the number of pixels included in the sub-picture to be generated and the location of each pixel in the sub-picture to be generated. location information.
- the result of the determination by the synthesis mode decision module 103 is that the picture to be generated can be generated by the block, and each of the to-be-generated sub-pictures includes 1024 pixels, and the 1024 pixels are included. Is a line, such as the first line or the second line.
- the picture to be generated is a 1024x1024 JPEG picture
- the JPEG format picture is displayed in a grid
- the picture to be generated includes 64x64 squares, and each square contains 16x16 pixels
- the synthesis mode The result of the determination by the decision module 103 is that the picture to be generated can be generated in blocks, and each sub-picture to be generated includes 16 ⁇ 16 pixels, that is, each sub-picture to be generated includes one square pixel.
- the synthetic mode decision module 103 is further configured to store a preset picture generation algorithm, where the preset picture algorithm is used to generate each pixel in the sub-picture to be generated.
- the two-dimensional code coding information corresponding to the user information and a preset picture generation algorithm may be combined to generate a sub-picture to be generated.
- the two-dimensional code encoding information may be generated by the image generation service module 102 according to the user information, wherein the position and color (eg, black or white) of at least one pixel in the image to be generated are defined.
- the block generation module 104 is configured to generate pixels in each sub-picture to be generated. Specifically, the block generation module 104 may first receive the picture generation request and the static picture forwarded by the picture generation service module 102, and then send an access request to the synthesis mode decision module 103 to obtain description information and presets of each sub-picture to be generated. a picture generation algorithm, and then generating each sub-picture in turn according to the description information of each sub-picture to be generated, the preset picture generation algorithm, and the above-mentioned still picture.
- the block storage module 105 is configured to store each pixel generated by the block generation module 104 when each sub-picture is generated, when all the pixels of one sub-picture are generated, that is, when the sub-picture is stored in the block storage module 105.
- the block storage module 105 transmits all the pixels of one sub-picture to the block code compression module 106. It should be noted that after the block storage module 105 sends all the pixels of one sub-picture to the encoding and compressing module 106, the block storage module 105 can be used to store each pixel of the next sub-picture, that is, the present application.
- the block storage module 105 can be reused to effectively utilize the memory resources of the computer.
- the block coding compression module 106 is configured to encode and compress the sub-picture according to the picture format of the picture to be generated. Here, according to the picture format of the picture to be generated, encoding and compressing the picture is a common common technique. This will not be repeated. After the sub-picture is encoded and compressed, the block coding compression module 106 sends the encoded and compressed sub-picture to the file generation module 107.
- the file generating module 107 is configured to generate a picture file that conforms to the picture format of the picture to be generated at the initial time. It can be understood that the picture file only contains the description information of the picture format of the picture to be generated, and does not include any pixels; Each time after receiving the encoded and compressed sub-picture sent by the block coding compression module 106, the encoded and compressed sub-pictures are added. Add to the above image file. When the file generation module 107 adds all the sub-pictures to the picture file, the necessary information (such as security check information or integrity check information, etc.) is added to the picture file; and then the picture to be generated can be generated.
- the necessary information such as security check information or integrity check information, etc.
- the method for generating a picture by the picture synthesizing device can be seen in FIG. 2 .
- the method may specifically include:
- Step 210 Receive a picture generation request, where the picture generation request includes a picture format of a picture to be generated.
- the image generation request here can be sent by the client.
- Step 220 Acquire a corresponding static picture according to the received picture generation request.
- the static picture here refers to the picture stored in the picture material storage module 101, which contains static information required to generate a majority of the picture to be generated, for example, it may be a background picture, a foreground picture or a LoGo picture.
- the image generation service module 102 may send a picture generation request, where the picture generation request includes a picture format of the picture to be generated, where the picture format may be JPEG, TIFF, RAW, BMP, GIF, PNG, etc.
- the picture generation service module 102 may send a picture generation request, then The above image generation request may further include user information (eg, user account and user avatar).
- the picture generation service module 102 After receiving the picture generation request including the user information, the picture generation service module 102 generates corresponding two-dimensional code coding information according to the user information.
- the image generation request may further include a name of the background image and/or the foreground image. If the image generation request includes the name of the background image and/or the foreground image, the image material is selected according to the name of the background image and/or the foreground image. The corresponding background image and/or the foreground image are obtained in the storage module 101; otherwise, the default background image and/or the foreground image are directly obtained from the image material storage module 101.
- Step 230 Determine, according to the picture format, a plurality of sub-pictures to be generated of the picture to be generated.
- Step 240 Obtain description information of each sub-picture to be generated, and sort the plurality of sub-pictures to be generated according to the description information.
- the description information of the sub-picture to be generated includes: the number of pixels included in the sub-picture to be generated and the location information of each pixel in the sub-picture to be generated.
- the picture generation service module 102 in FIG. 1 may, after acquiring the corresponding static picture from the picture material storage module 101, forward the picture format, the static picture, and the two-dimensional code coding information of the picture to be generated to the block generation module 104;
- the block generation module 104 may send an access request to the synthesis mode decision module 103, where the access request may include a picture format of the picture to be generated;
- the synthesis mode decision module 103 determines whether the block can be generated according to the picture format of the picture to be generated. Generating a picture; if the picture to be generated can be generated by the block, determining a plurality of pictures to be generated, and obtaining description information of each picture to be generated.
- the picture to be generated is a 1024x1024 JPEG picture
- the JPEG format picture is displayed in a grid
- the picture to be generated includes 64x64 squares, and each square contains 16x16 pixels
- the synthesis mode The judgment result of the decision module 103 is Generate a picture to be generated in chunks. Specifically, the total may be divided into 64 sub-pictures to be generated, and each sub-picture to be generated includes 16 ⁇ 16 pixels, that is, each sub-picture to be generated includes a square pixel; then the 64 to be generated may be generated.
- the pictures are sorted.
- the 64 sub-pictures to be generated may be sorted according to the position of the square of the pixel included in each sub-picture to be generated, and the sub-pictures to be generated are respectively corresponding to the pictures to be generated. Top to bottom, the first square, the second square, ..., the 64th square arranged from left to right.
- the synthesis mode decision module 103 may send the sorted description information of each sub-picture to be generated and a preset picture generation algorithm to the block generation module 104.
- Step 250 Generate a first sub-picture according to the description information of the first sub-picture to be generated, the preset picture generation algorithm, and the static picture, for the first sub-picture to be generated in the plurality of sub-pictures to be generated. image.
- the first sub-picture to be generated may be the top sub-picture to be generated.
- the image to be generated usually includes a plurality of pixels (for example, 1024 ⁇ 1024 pixels), and the preset image generation algorithm may be a method for generating each pixel.
- the first pixel may be any pixel, and the preset image generation algorithm may be defined as follows:
- the foreground pixel refers to one pixel in the foreground picture
- the background pixel refers to one pixel in the background picture.
- the first sub-picture may be generated according to the description information of the first sub-picture to be generated.
- Position information of the first pixel in the sub-picture to be generated reading the pixel of the corresponding position from the static picture according to the location information, and determining the first pixel according to the pixel of the corresponding position and the preset image generation algorithm; Analogy until each pixel in the first sub-picture to be generated is determined, thereby generating a first sub-picture.
- the first pixel may be generated by combining a corresponding description file (eg, the above-mentioned two-dimensional code encoding information).
- the description file defines a position, a color, and the like of at least one pixel in the image to be generated.
- the first to-be-generated sub-picture determined by the synthesis mode decision module 103 may include pixels of the first row, that is, may include 1024 pixels; and it is assumed that each pixel of the first sub-picture to be generated in the two-dimensional code coding information is defined as follows: Line 1 first: black; line 1 second: white; ...; line 1 1024: white.
- the first foreground pixel of the first row is read from the foreground picture, and the first row is The first foreground pixel is the first pixel in the first sub-picture to be generated; when the second pixel in the first line is generated, that is, when the second pixel in the first sub-picture to be generated is generated, Reading the second background pixel of the first row from the background image, using the second background pixel of the first row as the second pixel in the first sub-picture to be generated; ...; until determining the first sub-picture to be generated The 1024th pixel in the middle. It can be understood that after the 1024th pixel is generated, that is, after the last pixel of the first to-be-generated sub-picture is generated, the first sub-picture is generated.
- the block generation module 104 stores the pixel in the block storage module 105 for each pixel in the sub-picture, until the block storage module 105 All the pixels in one sub-picture are stored, as in the foregoing example, until 1024 pixels are stored in the block storage module 105; then the block generation module 104 sends all the pixels of one sub-picture and the format of the picture to be generated to the area.
- Block compression module 106 It can be understood that, after the block generation module 104 sends all the pixels of one sub-picture to the block compression module 106, the block storage module 105 can be used to store all the pixels of the next sub-picture, that is, in the present application.
- the block storage module 105 can be reused, thereby improving the utilization of memory resources; in addition, the block storage module 105 in the present application is only used to store all pixels of one sub-picture without storing the entire picture. Information, so it greatly saves the memory resources of the computer.
- Step 260 Perform pre-processing on the first sub-picture, and add the pre-processed first sub-picture to the picture file that conforms to the picture format.
- the preprocessing herein may include encoding, compression processing, and the like.
- the pictures stored on the external storage space of the computer are usually encoded and compressed. Images of different image formats may have different encoding and compression methods. Specifically, after receiving the picture format of the first sub-picture and the picture format of the picture to be generated, the block compression module 106 may encode and compress the first sub-picture according to the picture format of the picture to be generated, where The encoding and compression processing of pictures in different picture formats belong to the traditional common techniques, and will not be repeated here.
- the block compression module 106 After encoding and compressing the first sub-picture, the block compression module 106 sends the first sub-picture after the encoding and compression processing and the picture format of the picture to be generated to the file generating module 107.
- the file generating module 107 can initially generate a picture file that conforms to the picture format of the picture to be generated, and the picture file only contains the description information of the picture format of the picture to be generated, and does not include any pixels;
- the encoded and compressed sub-picture is added to the picture file.
- Step 270 Perform generation, preprocessing, and adding operations on the other sub-pictures to be generated in the plurality of sub-pictures to be generated in sequence according to the generation, pre-processing, and adding manner of the first sub-picture, until the to-be-generated is obtained. image.
- a second sub-picture (including 1024 pixels in the second line) may be generated; then the second sub-picture is pre-processed, and the pre-processed second is generated.
- the sub-pictures are added to the above picture file; and so on, until the 1024th sub-picture is generated, and the pre-processed 1024th sub-picture is added to the above picture file.
- the file generation module 107 adds all the sub-pictures to the picture file, the necessary information (such as security check information or integrity check information, etc.) is added to the picture file; and then the picture to be generated is generated.
- the method for generating a picture determines the description information of each sub-picture to be generated of the picture to be generated according to the picture format of the picture to be generated, and sorts each sub-picture to be generated according to the description information; Generating each sub-picture, wherein, in the process of sequentially generating each sub-picture in order, each sub-picture is pre-processed and added to the picture file; and all sub-pictures are saved in the picture file. When all the sub-pictures constitute the picture to be generated.
- the present application sequentially generates each sub-picture in order, that is, only needs to save information of one sub-picture in the memory, thereby avoiding the need to save the complete information of the picture to be generated in the memory in the prior art.
- the device includes:
- the receiving unit 401 is configured to receive a picture generation request, where the picture generation request includes a picture format of the picture to be generated.
- the obtaining unit 402 is configured to acquire a corresponding static picture according to the picture generation request received by the receiving unit 401.
- the determining unit 403 is configured to determine, according to the picture format, multiple to-be-generated sub-pictures of the picture to be generated.
- the sorting unit 404 is configured to acquire description information of each sub-picture to be generated determined by the determining unit 403, and sort the plurality of sub-pictures to be generated according to the description information.
- the description information may include: the number of pixels included in the sub-picture to be generated and the location information of each pixel in the sub-picture to be generated.
- the generating unit 405 is configured to: the first to-be-generated sub-picture in the plurality of to-be-generated sub-pictures that are sorted by the sorting unit 404, according to the description information of the first sub-picture to be generated, a preset picture generation algorithm, and a still picture , generating the first sub-picture.
- the generating unit 405 is specifically configured to:
- Reading according to the description information of the first sub-picture to be generated, the location information of the first pixel in the first sub-picture to be generated; and reading the pixel of the corresponding position from the static picture according to the location information, and according to the corresponding location
- the pixel and the preset image generation algorithm determine the first pixel; and so on, until each pixel in the first sub-picture to be generated is determined, thereby generating a first sub-picture.
- the pre-processing unit 406 is configured to perform pre-processing on the first sub-picture generated by the generating unit 405, and add the pre-processed first sub-picture to the picture file that conforms to the picture format.
- the obtaining unit 402 is further configured to sequentially generate, pre-process, and add operations on the to-be-generated sub-pictures in the plurality of sub-pictures to be generated, according to the manner of generating, pre-processing, and adding the first sub-picture. Until you get the picture to be generated.
- the static picture includes a foreground picture and/or a background picture
- the pixel in the corresponding location is read from the static image, and the first pixel is determined according to the pixel of the corresponding location and the preset image generation algorithm, specifically:
- the foreground pixel of the corresponding location is read from the foreground image
- the background pixel of the corresponding location is read from the background image
- the merged foreground pixel and the background pixel are taken as the first pixel.
- the image generation request may further include user information
- the generating unit 405 is also specifically configured to:
- the first sub-picture is generated according to the description information of the first sub-picture to be generated, the preset picture generation algorithm, the static picture, and the two-dimensional code coding information.
- the receiving unit 401 receives a picture generation request, where the picture generation request includes a picture format of a picture to be generated, and the obtaining unit 402 acquires a corresponding static picture according to the received picture generation request;
- the unit 403 determines a plurality of to-be-generated sub-pictures to be generated according to the picture format, and the sorting unit 404 obtains the description information of each sub-picture to be generated, and sorts the plurality of sub-pictures to be generated according to the description information;
- the unit 406 preprocesses the first sub-picture, and adds the pre-processed first sub-picture to the picture file that conforms to the picture format; the obtaining unit 402 generates, pre-processe
- the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both.
- the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Library & Information Science (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Processing Or Creating Images (AREA)
- Editing Of Facsimile Originals (AREA)
- Image Processing (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
Description
Claims (10)
- 一种图片的生成方法,其特征在于,该方法包括:接收图片生成请求,所述图片生成请求包括待生成图片的图片格式;根据接收的图片生成请求,获取对应的静态图片;根据所述图片格式,确定所述待生成图片的多个待生成子图片;获取各待生成子图片的描述信息,并根据所述描述信息,对所述多个待生成子图片进行排序;对排序后的多个待生成子图片中的第一个待生成子图片,根据所述第一个待生成子图片的描述信息、预设的图片生成算法以及所述静态图片,生成第一个子图片;对所述第一个子图片进行预处理,将预处理后的第一个子图片添加到符合所述图片格式的图片文件中;按照对所述第一个子图片的生成、预处理以及添加方式,依次对排序后的多个待生成子图片中的其它待生成子图片进行生成、预处理以及添加操作,直至获得所述待生成图片。
- 根据权利要求1所述的方法,其特征在于,所述描述信息包括:待生成子图片中包含的像素的个数以及待生成子图片中各个像素所在的位置信息。
- 根据权利要求1或2所述的方法,其特征在于,所述根据所述第一个待生成子图片的描述信息、预设的图片生成算法以及所述静态图片,生成第一个子图片,具体为:根据所述第一个待生成子图片的描述信息,读取所述第一个待生成子图片中第一像素所在的位置信息;根据所述位置信息,从所述静态图片中读取相应位置的像素,并根据相应位置的像素以及预设的图片生成算法,确定所述第一像素;依次类推,直至确定出所述第一个待生成子图片中的 每个像素,从而生成所述第一个子图片。
- 根据权利要求3所述的方法,其特征在于,所述静态图片包括前景图片和/或背景图片;所述根据所述位置信息,从所述静态图片中读取相应位置的像素,并根据相应位置的像素以及预设的图片生成算法,确定所述第一像素,具体为:根据所述位置信息,从前景图片中读取相应位置的前景像素,将所述前景像素作为第一像素;或者,根据所述位置信息,从背景图片中读取相应位置的背景像素,将所述背景像素作为第一像素;或者,根据所述位置信息,从前景图片中读取相应位置的前景像素,并从背景图片中读取相应位置的背景像素,将融合后的所述前景像素和背景像素作为所述第一像素。
- 根据权利要求1-4任一项所述的方法,其特征在于,所述图片生成请求还包括用户信息;根据所述第一个待生成子图片的描述信息、预设的图片生成算法以及所述静态图片,生成第一个子图片,具体为:根据所述用户信息,生成二维码编码信息;根据所述第一个待生成子图片的描述信息、预设的图片生成算法、所述静态图片以及所述二维码编码信息,生成所述第一个子图片。
- 一种图片的生成装置,其特征在于,该装置包括:接收单元,用于接收图片生成请求,所述图片生成请求包括待生成图片的图片格式;获取单元,用于根据所述接收单元接收的图片生成请求,获取对应的静态图片;确定单元,用于根据所述图片格式,确定所述待生成图片的多个待生成子图片;排序单元,用于获取所述确定单元确定的各待生成子图片的描述信息,并根据所述描述信息,对所述多个待生成子图片进行排序;生成单元,用于对所述排序单元排序后的多个待生成子图片中的第一个待生成子图片,根据所述第一个待生成子图片的描述信息、预设的图片生成算法以及所述静态图片,生成第一个子图片;预处理单元,用于对所述生成单元生成的所述第一个子图片进行预处理,将预处理后的第一个子图片添加到符合所述图片格式的图片文件中;所述获取单元,还用于按照对所述第一个子图片的生成、预处理以及添加方式,依次对排序后的多个待生成子图片中的其它待生成子图片进行生成、预处理以及添加操作,直至获得所述待生成图片。
- 根据权利要求6所述的装置,其特征在于,所述描述信息包括:待生成子图片中包含的像素的个数以及待生成子图片中各个像素所在的位置信息。
- 根据权利要求6或7所述的装置,其特征在于,所述生成单元具体用于:根据所述第一个待生成子图片的描述信息,读取所述第一个待生成子图片中第一像素所在的位置信息;根据所述位置信息,从所述静态图片中读取相应位置的像素,并根据相应位置的像素以及预设的图片生成算法,确定所述第一像素;依次类推,直至确定出所述第一个待生成子图片中的每个像素,从而生成所述第一个子图片。
- 根据权利要求8所述的装置,其特征在于,所述静态图片包括前景图片和/或背景图片;所述根据所述位置信息,从所述静态图片中读取相应位置的像素,并 根据相应位置的像素以及预设的图片生成算法,确定所述第一像素,具体为:根据所述位置信息,从前景图片中读取相应位置的前景像素,将所述前景像素作为第一像素;或者,根据所述位置信息,从背景图片中读取相应位置的背景像素,将所述背景像素作为第一像素;或者,根据所述位置信息,从前景图片中读取相应位置的前景像素,并从背景图片中读取相应位置的背景像素,将融合后的所述前景像素和背景像素作为所述第一像素。
- 根据权利要求6-9任一项所述的装置,其特征在于,所述图片生成请求还包括用户信息;所述生成单元还具体用于:根据所述用户信息,生成二维码编码信息;根据所述第一个待生成子图片的描述信息、预设的图片生成算法、所述静态图片以及所述二维码编码信息,生成所述第一个子图片。
Priority Applications (7)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SG11201810297XA SG11201810297XA (en) | 2016-05-31 | 2017-04-18 | Image generation method and device |
EP17805551.3A EP3468185A1 (en) | 2016-05-31 | 2017-04-18 | Image generation method and device |
KR1020187037147A KR102242767B1 (ko) | 2016-05-31 | 2017-04-18 | 이미지 생성 방법 및 디바이스 |
JP2018563074A JP6903079B2 (ja) | 2016-05-31 | 2017-04-18 | 画像生成方法及びデバイス |
MYPI2018002077A MY194950A (en) | 2016-05-31 | 2017-04-18 | Image generation method and device |
PH12018502498A PH12018502498A1 (en) | 2016-05-31 | 2018-11-26 | Image generation method and device |
US16/202,609 US10970818B2 (en) | 2016-05-31 | 2018-11-28 | Sub-image based image generation |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610374626.8 | 2016-05-31 | ||
CN201610374626.8A CN107452041B (zh) | 2016-05-31 | 2016-05-31 | 图片的生成方法及装置 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/202,609 Continuation US10970818B2 (en) | 2016-05-31 | 2018-11-28 | Sub-image based image generation |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017206606A1 true WO2017206606A1 (zh) | 2017-12-07 |
Family
ID=60479607
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/080863 WO2017206606A1 (zh) | 2016-05-31 | 2017-04-18 | 图片的生成方法及装置 |
Country Status (10)
Country | Link |
---|---|
US (1) | US10970818B2 (zh) |
EP (1) | EP3468185A1 (zh) |
JP (1) | JP6903079B2 (zh) |
KR (1) | KR102242767B1 (zh) |
CN (1) | CN107452041B (zh) |
MY (1) | MY194950A (zh) |
PH (1) | PH12018502498A1 (zh) |
SG (1) | SG11201810297XA (zh) |
TW (1) | TWI706371B (zh) |
WO (1) | WO2017206606A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112771578A (zh) * | 2018-09-27 | 2021-05-07 | 渊慧科技有限公司 | 使用细分缩放和深度上缩放的图像生成 |
CN113284201A (zh) * | 2021-05-27 | 2021-08-20 | 杭州睿影科技有限公司 | 安检图像的生成方法、安检***及存储介质 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107452041B (zh) * | 2016-05-31 | 2020-07-31 | 阿里巴巴集团控股有限公司 | 图片的生成方法及装置 |
US20220343544A1 (en) * | 2021-04-26 | 2022-10-27 | The Boeing Company | Dividing an astc texture to a set of sub-images |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8503802B1 (en) * | 2006-12-21 | 2013-08-06 | Marvell International Ltd. | Method and apparatus for processing an image |
CN105245881A (zh) * | 2015-09-28 | 2016-01-13 | 杭州九言科技股份有限公司 | 一种数字图像滤镜处理的方法和装置 |
CN105488132A (zh) * | 2015-11-25 | 2016-04-13 | 小米科技有限责任公司 | 头像图片获取方法及装置 |
CN105516618A (zh) * | 2014-09-27 | 2016-04-20 | 北京金山安全软件有限公司 | 一种制作视频的方法、装置及通信终端 |
Family Cites Families (32)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5668897A (en) * | 1994-03-15 | 1997-09-16 | Stolfo; Salvatore J. | Method and apparatus for imaging, image processing and data compression merge/purge techniques for document image databases |
WO1997006512A2 (en) * | 1995-08-04 | 1997-02-20 | Microsoft Corporation | Method and system for rendering graphical objects to image chunks and combining image layers into a display image |
US6141012A (en) * | 1997-03-31 | 2000-10-31 | Xerox Corporation | Image processing code generation based on structured image (SI) techniques |
US6611241B1 (en) * | 1997-12-02 | 2003-08-26 | Sarnoff Corporation | Modular display system |
TWI384413B (zh) * | 2006-04-24 | 2013-02-01 | Sony Corp | An image processing apparatus, an image processing method, an image processing program, and a program storage medium |
KR100827679B1 (ko) * | 2006-08-16 | 2008-05-07 | 엠텍비젼 주식회사 | 통합 비디오 코덱을 위한 트랜스폼 모듈 및 방법 |
DE102006039389A1 (de) * | 2006-08-22 | 2008-02-28 | Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. | Vorrichtung und Verfahren zur Reduzierung von Übergangsartefakten in einem Gesamtbild, das sich aus Teilbildern zusammensetzt |
JP4945236B2 (ja) * | 2006-12-27 | 2012-06-06 | 株式会社東芝 | 映像コンテンツ表示装置、映像コンテンツ表示方法及びそのプログラム |
JP4831349B2 (ja) * | 2007-01-23 | 2011-12-07 | 富士ゼロックス株式会社 | 画像処理装置、画像形成装置、画像形成システム、及びプログラム |
WO2008149363A2 (en) * | 2007-06-05 | 2008-12-11 | Dblur Technologies Ltd. | Non-linear transformations for enhancement of images |
US8004582B2 (en) * | 2007-12-14 | 2011-08-23 | Casio Computer Co., Ltd. | Image file processing apparatus, image file processing method, and storage medium |
US8369652B1 (en) * | 2008-06-16 | 2013-02-05 | Hrl Laboratories, Llc | Visual attention system for salient regions in imagery |
TW201023094A (en) * | 2008-12-05 | 2010-06-16 | Univ Lunghwa Sci & Technology | Method for editing and transmitting network picture in dot matrix manner |
JP2012523765A (ja) * | 2009-04-08 | 2012-10-04 | ウォッチイットゥー インコーポレイテッド | 画像圧縮のためのシステム及び方法 |
TW201044314A (en) * | 2009-06-12 | 2010-12-16 | Int Games System Co Ltd | Joint dynamic image editing system and method thereof |
US8751677B2 (en) * | 2009-10-08 | 2014-06-10 | Futurewei Technologies, Inc. | System and method to support different ingest and delivery schemes for a content delivery network |
KR20120037330A (ko) * | 2010-10-11 | 2012-04-19 | (주) 나무인터넷 | 이미지객체를 이용한 로그인 인증 방법 및 그 시스템 |
US8965140B1 (en) * | 2011-01-31 | 2015-02-24 | Teradici Corporation | Method and apparatus for encoding mixed content image sequences |
CN102622628B (zh) | 2012-02-24 | 2014-09-03 | 南京大学 | 一种通过渲染方式生成qr码的方法 |
CN102651138B (zh) * | 2012-04-10 | 2014-11-26 | 西安理工大学 | 基于jpeg图片拼接的超大图片合成方法 |
US9538183B2 (en) * | 2012-05-18 | 2017-01-03 | Home Box Office, Inc. | Audio-visual content delivery with partial encoding of content chunks |
TWI457623B (zh) * | 2012-08-24 | 2014-10-21 | Extend Optronics Corp | 隔熱光導膜結構及其裝置 |
KR101509877B1 (ko) * | 2013-01-21 | 2015-04-07 | 에스케이씨앤씨 주식회사 | 이미지로부터 생성한 워터마크를 이미지에 삽입하는 기법에 의한 워터마킹 방법 및 장치 |
US10068363B2 (en) * | 2013-03-27 | 2018-09-04 | Nokia Technologies Oy | Image point of interest analyser with animation generator |
US9210434B2 (en) * | 2013-06-12 | 2015-12-08 | Microsoft Technology Licensing, Llc | Screen map and standards-based progressive codec for screen content coding |
AU2013273768A1 (en) * | 2013-12-20 | 2015-07-09 | Canon Kabushiki Kaisha | Parallel rendering of region-based graphics representations |
CN103778631B (zh) * | 2014-01-16 | 2017-01-18 | 西安理工大学 | 基于jpeg文件流的图片分割方法 |
CN104143109B (zh) * | 2014-01-28 | 2017-04-05 | 深圳市雁联计算***有限公司 | 一种二维码的编码和解码方法及其印刷物 |
US9176473B1 (en) * | 2015-02-09 | 2015-11-03 | Nanografix Corporation | Systems and methods for fabricating variable digital optical images using generic optical matrices |
CN104881470B (zh) * | 2015-05-28 | 2018-05-08 | 暨南大学 | 一种面向海量图片数据的重复数据删除方法 |
CN107452041B (zh) * | 2016-05-31 | 2020-07-31 | 阿里巴巴集团控股有限公司 | 图片的生成方法及装置 |
US10318573B2 (en) * | 2016-06-22 | 2019-06-11 | Oath Inc. | Generic card feature extraction based on card rendering as an image |
-
2016
- 2016-05-31 CN CN201610374626.8A patent/CN107452041B/zh active Active
-
2017
- 2017-03-16 TW TW106108753A patent/TWI706371B/zh active
- 2017-04-18 SG SG11201810297XA patent/SG11201810297XA/en unknown
- 2017-04-18 EP EP17805551.3A patent/EP3468185A1/en not_active Ceased
- 2017-04-18 WO PCT/CN2017/080863 patent/WO2017206606A1/zh unknown
- 2017-04-18 KR KR1020187037147A patent/KR102242767B1/ko active IP Right Grant
- 2017-04-18 MY MYPI2018002077A patent/MY194950A/en unknown
- 2017-04-18 JP JP2018563074A patent/JP6903079B2/ja active Active
-
2018
- 2018-11-26 PH PH12018502498A patent/PH12018502498A1/en unknown
- 2018-11-28 US US16/202,609 patent/US10970818B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8503802B1 (en) * | 2006-12-21 | 2013-08-06 | Marvell International Ltd. | Method and apparatus for processing an image |
CN105516618A (zh) * | 2014-09-27 | 2016-04-20 | 北京金山安全软件有限公司 | 一种制作视频的方法、装置及通信终端 |
CN105245881A (zh) * | 2015-09-28 | 2016-01-13 | 杭州九言科技股份有限公司 | 一种数字图像滤镜处理的方法和装置 |
CN105488132A (zh) * | 2015-11-25 | 2016-04-13 | 小米科技有限责任公司 | 头像图片获取方法及装置 |
Non-Patent Citations (1)
Title |
---|
See also references of EP3468185A4 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112771578A (zh) * | 2018-09-27 | 2021-05-07 | 渊慧科技有限公司 | 使用细分缩放和深度上缩放的图像生成 |
CN112771578B (zh) * | 2018-09-27 | 2024-05-24 | 渊慧科技有限公司 | 使用细分缩放和深度上缩放的图像生成 |
CN113284201A (zh) * | 2021-05-27 | 2021-08-20 | 杭州睿影科技有限公司 | 安检图像的生成方法、安检***及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
MY194950A (en) | 2022-12-28 |
TWI706371B (zh) | 2020-10-01 |
US20190108616A1 (en) | 2019-04-11 |
EP3468185A4 (en) | 2019-04-10 |
JP2019517696A (ja) | 2019-06-24 |
EP3468185A1 (en) | 2019-04-10 |
KR20190013870A (ko) | 2019-02-11 |
TW201743283A (zh) | 2017-12-16 |
KR102242767B1 (ko) | 2021-04-23 |
US10970818B2 (en) | 2021-04-06 |
CN107452041A (zh) | 2017-12-08 |
PH12018502498A1 (en) | 2019-04-08 |
JP6903079B2 (ja) | 2021-07-14 |
SG11201810297XA (en) | 2018-12-28 |
CN107452041B (zh) | 2020-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102431117B1 (ko) | 포인트 클라우드 맵핑 | |
WO2017206606A1 (zh) | 图片的生成方法及装置 | |
US20200302578A1 (en) | Point cloud geometry padding | |
US8077986B2 (en) | Information processing apparatus, method of controlling same and computer program | |
US20100250588A1 (en) | Image searching system and image searching method | |
US20040165782A1 (en) | Image processing apparatus | |
JP2007074030A (ja) | 画像処理装置及び方法 | |
Yue et al. | SIFT-based image compression | |
US20180184096A1 (en) | Method and apparatus for encoding and decoding lists of pixels | |
CN107241597B (zh) | 一种结合四叉树自适应编码的可逆信息隐藏方法 | |
JP2006197178A (ja) | 画像処理装置および画像処理方法およびプログラムおよび記憶媒体 | |
JP2019517696A5 (zh) | ||
JP2013125994A (ja) | 画像圧縮装置、画像圧縮方法、コンピュータプログラム | |
JP3287469B2 (ja) | 画像ファイル記憶方法、デジタル・カメラ及び記憶媒体 | |
JP2003244447A (ja) | 画像処理装置及び画像処理方法 | |
JP2017211936A (ja) | 文書保存処理システム | |
TW202036483A (zh) | 拼貼擴充方法、編碼器與解碼器 | |
CN103034972B (zh) | 图像处理平台的实现方法及图像处理平台 | |
JP2023522456A (ja) | マルチビュービデオシーケンスをコード化および復号するための方法およびデバイス | |
Shao et al. | Inter-picture prediction based on 3D point cloud model | |
US20150278636A1 (en) | Image processing apparatus, image processing method, and recording medium | |
JP2003338934A (ja) | 画像処理装置および方法 | |
KR102332203B1 (ko) | 방향의 대칭성을 이용한 영상 코딩 장치의 신호 처리 방법 | |
JP4383187B2 (ja) | 画像処理装置、画像処理用プログラム及び記憶媒体 | |
JP2006222940A (ja) | 画像処理装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
ENP | Entry into the national phase |
Ref document number: 2018563074 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17805551 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 20187037147 Country of ref document: KR Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 2017805551 Country of ref document: EP Effective date: 20190102 |