WO2020192212A1 - 图片处理方法、图集处理方法、计算机设备和存储介质 - Google Patents

图片处理方法、图集处理方法、计算机设备和存储介质 Download PDF

Info

Publication number
WO2020192212A1
WO2020192212A1 PCT/CN2019/128467 CN2019128467W WO2020192212A1 WO 2020192212 A1 WO2020192212 A1 WO 2020192212A1 CN 2019128467 W CN2019128467 W CN 2019128467W WO 2020192212 A1 WO2020192212 A1 WO 2020192212A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
processed
image
pixel
bounding box
Prior art date
Application number
PCT/CN2019/128467
Other languages
English (en)
French (fr)
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 EP19920847.1A priority Critical patent/EP3929871A4/en
Publication of WO2020192212A1 publication Critical patent/WO2020192212A1/zh
Priority to US17/448,295 priority patent/US20220005151A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/14Transformations for image registration, e.g. adjusting or mapping for alignment of images
    • G06T3/147Transformations for image registration, e.g. adjusting or mapping for alignment of images using affine transformations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/802D [Two Dimensional] animation, e.g. using sprites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/12Edge-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20112Image segmentation details
    • G06T2207/20132Image cropping
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application also provides a computer-readable storage medium on which computer-readable instructions are stored, and the computer-readable instructions implement the steps of the foregoing method when executed by a processor.
  • an image processing method, an atlas processing method based on the image processing method, and an animation production method based on the atlas processing method are provided; at the same time, a computer device is provided.
  • the device executes the computer-readable instructions on the memory, the steps of any of the above methods are implemented; at the same time, a computer-readable storage medium is provided, and the computer-readable storage medium stores computer-readable instructions, and the computer-readable
  • a picture processing device corresponding to the above picture processing method, an atlas processing device corresponding to the above atlas processing method and an animation corresponding to the above animation production method are also provided The production device.
  • the atlas corresponding to the acquired animation is the atlas obtained by any one of the atlas processing methods provided in this application, wherein the pictures in the atlas are provided by any one of the The picture processing method is obtained. Therefore, the pictures in the atlas will have a corresponding rotation angle relative to the original picture to be processed.
  • the animation production method after the atlas is obtained, the pictures in the atlas are rotated back to the original angle to obtain the initial Angle picture, in the initial angle picture, the angle of the image is restored to the original angle, and then an animation is made for each initial angle picture.
  • the atlas occupies a small amount of memory, during the animation production process, the device memory usage is reduced.
  • the image is at the original angle before the animation is made, and the user does not need to adjust the angle of the image, which improves the user's physical examination .
  • FIG. 1 is a flowchart of the picture processing method provided in Embodiment 1 of this application.
  • the picture processing method provided in this embodiment includes the following Step S101 to step S104.
  • the picture to be processed includes a plurality of pixels, and the plurality of pixels includes a first pixel for forming an image and a second pixel for forming a background of the image.
  • each second pixel constituting the image background may adopt the same gray scale
  • the first pixel constituting the image has a corresponding gray scale at each position according to the specific image.
  • Step S104 In the picture with the smallest bounding box area, remove the second pixel outside the bounding box to obtain a processed picture.
  • the predetermined angle range is 0 degrees to 90 degrees
  • the predetermined interval angle is 1 degree. That is, in step S102, the picture to be processed is set between 0 degrees and 90 degrees. Rotate once every 1 degree, and get an intermediate picture, get a total of 89 intermediate pictures.
  • the bounding box area of the image to be processed and the 89 intermediate pictures are calculated respectively, so that in step S104, In the bounding box of the 90-angle image, that is, find the smallest bounding box among the 90 bounding boxes to further reduce the size of the picture.
  • FIG. 2 shows a picture S to be processed, which includes a plurality of pixels P, and the coordinates of each pixel P in the first direction a are the first coordinates x, the coordinate in the second direction b is the second coordinate y, where the first direction a and the second direction b are perpendicular, that is, each pixel P is arranged in the first direction a and the second direction b respectively, forming
  • the pixel array, in the picture S to be processed, the bounding box B of the image includes two first sides A1 extending in the first direction a and two second sides A2 extending in the second direction b. It should be noted that only the outlines of some pixels are shown in FIG. 2, and the edges of the image are also simplified as straight lines. In fact, at the pixel level, the edges of the image should be sawtooth.
  • the bounding box is set as a rectangle, the graph is simple, and the amount of geometric calculation in the data processing process is small.
  • the extension direction of the frame of the bounding box is consistent with the pixel arrangement direction, so that when the second pixel outside the bounding box is deleted, the amount of deletion can be increased to reduce the picture size as much as possible.
  • FIG. 4 is a schematic diagram of the steps of calculating the bounding box area of the enclosing image on the picture to be processed in the image processing method provided in Embodiment 1 of this application, and FIG. 5 is provided in Embodiment 1 of this application.
  • the schematic diagram of calculating the area of the bounding box is shown in Figures 4 and 5.
  • step S103 the step of calculating the area of the bounding box of the enclosing image in the picture to be processed specifically includes the following steps S1031 to S1035, the following steps are all for The steps of the picture to be processed, specifically:
  • Step S1032 Take a group of pixels P with the same second coordinate as a pixel row Py, in each pixel row Py, obtain the first pixel with the largest first coordinate and the first pixel with the smallest first coordinate, and write the second pixel Array.
  • the obtained pixels in the first array and the second array constitute the edges of the image.
  • Calculate the intersection of the first array and the second array, and the obtained pixels are the convex points at the edge of the image. This application will name the initial convex point array.
  • the pixels included in the initial bump array are pixel P1, pixel P2, pixel P3, and pixel P4. It should be noted that FIG. 5 only schematically shows an initial bump array corresponding to an image, and does not constitute a limitation on the image in this application.
  • Step S1034 In the initial bump array, calculate the difference between the largest first coordinate and the smallest first coordinate to obtain a first initial difference, and calculate the difference between the largest second coordinate and the smallest second coordinate to obtain a second initial difference value.
  • Step S1035 Calculate the product of the first initial difference and the second initial difference to obtain the area of the bounding box surrounding the image in the picture to be processed.
  • step S103 the step of calculating the bounding box area of the enclosing image in the intermediate picture specifically includes: calculating the largest first coordinate and the smallest first coordinate in the middle convex point array Calculate the difference between the largest second coordinate and the smallest second coordinate to obtain the second intermediate difference; calculate the product of the first intermediate difference and the second intermediate difference to obtain the encircled middle picture The area of the bounding box of the image.
  • the step of obtaining a picture to be processed includes: obtaining a picture file in psd format, where the picture file in Psd format is an image format file of Photoshop itself, which is a design of Photoshop file. Obtain a layer in the image file to obtain the image to be processed; after removing the second pixel outside the smallest bounding box in the image to be processed, the processed image is obtained.
  • the image processing method also includes: Pictures are stored in png format, where png is a bit image format with lossless compression.
  • the image to be processed is a layer derived from the psd format, and finally the processed image is stored in the png format to facilitate subsequent calls of other image processing tools.
  • the above is an example of the image processing method provided by the embodiment of the application.
  • the atlas processing method provided in this application includes the above-mentioned image processing method. Therefore, in the following description of the atlas processing method provided in this application, the above-mentioned image The description of the processing method is relatively brief. For specific technical features and corresponding technical effects, please refer to the above.
  • FIG. 6 is a flowchart of the atlas processing method provided in the second embodiment of the application. As shown in FIG. 6, the atlas processing method provided in this embodiment is shown in FIG. It includes the following steps S201 to S203.
  • Step S201 Use a layer in the picture file in the psd format as a picture to be processed.
  • the acquired picture file in the psd format is a file stream of the picture file, and the specific method for reading the file stream may adopt an existing reading method in the prior art.
  • Step S202 Process the picture to be processed to obtain the processed picture.
  • this step can be specifically processed by any one of the image processing methods provided in this application, and for details, please refer to the above.
  • Step S203 Combine several processed pictures into one atlas.
  • the picture file in psd format can be processed into atlas.
  • each layer in the picture file is processed as a picture to be processed, and the result is smaller after processing.
  • the pictures are then assembled into an atlas, so that the resulting atlas is also smaller.
  • More pictures can be set in the same size atlas, which improves the space utilization of the puzzle and reduces the process of processing the atlas in subsequent programs.
  • this application directly reads the file stream of the picture file to be processed, and treats each layer in the picture file to be processed as a separate picture.
  • the picture can be cropped at the pixel level, and the data is drawn after reading the data in the prior art. For image, all layer attributes are hidden, and the overall processing speed is faster than that of image segmentation directly on the overall image.
  • x max is the largest first coordinate of the pixel in the processed image
  • x min is the smallest first coordinate of the pixel in the processed image
  • y max is the largest second coordinate of the pixel in the processed image
  • y min is second minimum coordinates of pixels in image processing
  • the name of the corresponding layer is reflected in the name of the processed picture, which improves the readability of the data in the subsequent processing process.
  • the picture is further changed.
  • the layer number is introduced into the name of the processed picture to avoid confusion in the name of the processed picture.
  • step S201 when a layer in a picture file in psd format is used as a picture to be processed, the attribute of the layer is judged, when the layer is not a text layer , Background layer or hidden layer, use a layer in the psd format picture file as a picture to be processed.
  • the layer is a text layer, background layer or hidden layer, the text layer and background are not correct Layer or hidden layer for processing.
  • the atlas processing method provided in this embodiment does not process the text layer, the background layer or the hidden layer, which reduces the amount of data processing while not causing image data loss.
  • FIG. 9 is a flowchart of the animation production method provided in the third embodiment of the application. As shown in FIG. 9, the animation production method provided in this embodiment is shown in FIG. It includes the following steps S301 to S303.
  • Step S301 Obtain an atlas corresponding to the animation.
  • the atlas can be obtained by any of the atlas processing methods provided in this application, and for details, please refer to the above.
  • Step S302 Convert each processed picture in the atlas into an initial angle picture.
  • the initial angle picture is the picture when the processed picture is at the angle of the picture to be processed.
  • Step S303 Make an animation based on all initial angle pictures.
  • the atlas processed by the atlas processing method provided in this application is used.
  • each picture in the atlas is now converted into an initial angle picture, so that the picture is The image of the image is consistent with the initial angle.
  • the device memory is reduced during the animation production process.
  • the image is at the original angle before the animation is made, without the need for the user to read the image Adjust the angle to improve the user's physical examination.
  • FIG. 11 is a block diagram of the picture processing device provided in the fourth embodiment of the application. As shown in FIG. 11, the device includes: a first acquisition module 401, a rotation module 402, a calculation module 403, and a cutting module 404.
  • the first obtaining module 401 is used to obtain a picture to be processed, where the picture to be processed includes a plurality of pixels, and the plurality of pixels includes a first pixel used to form an image and a second pixel used to form a background of the image.
  • the rotation module 402 is used to rotate the picture to be processed, wherein each angle is rotated to obtain an intermediate picture.
  • the calculation module 403 is configured to select at least two pictures from the picture to be processed and several intermediate pictures, and respectively calculate the bounding box area of the enclosing image.
  • the cropping module 404 is used to remove the second pixel outside the bounding box in the picture with the smallest bounding box area to obtain the processed picture.
  • the coordinates of the pixel in the first direction are the first coordinates
  • the coordinates in the second direction are the second coordinates, where the first direction and the second direction are perpendicular, and in the picture to be processed, the bounding box is included in Two first sides extending in the first direction and two second sides extending in the second direction.
  • the steps performed include: for the picture to be processed, a group of pixels with the same first coordinate is regarded as a pixel column, and each pixel column , Get the first pixel with the largest second coordinate and the first pixel with the smallest second coordinate and write it into the first array; take a group of pixels with the same second coordinate as a pixel row, and in each pixel row, get the first pixel The first pixel with the largest coordinate and the first pixel with the smallest first coordinate are written into the second array; the intersection of the first array and the second array is calculated to obtain the initial bump array; in the initial bump array, the largest The difference between the first coordinate and the smallest first coordinate obtains the first initial difference, and the difference between the largest second coordinate and the smallest second coordinate is calculated to obtain the second initial difference; the first initial difference and the second initial difference are calculated The product of values to obtain the area of the bounding box surrounding the image in the image to
  • the steps specifically performed by the rotation module 402 include: determining the center of the bounding box of the image in the picture to be processed to obtain the initial center point; rotating the coordinates of each pixel in the initial bump array around the initial center point to obtain the number of intermediate bumps group.
  • the predetermined angle ranges from 0 degrees to 90 degrees, and the predetermined interval angle is 1 degree.
  • the second pixel is a transparent pixel
  • the first pixel is a non-transparent pixel
  • the steps performed by the first obtaining module 401 include: obtaining a picture file in psd format; obtaining a layer in the picture file to obtain a picture to be processed; the device also includes a storage module for storing the processed picture as png format.
  • FIG. 12 is a block diagram of the atlas processing device provided in the fifth embodiment of the application. As shown in FIG. 12, the device includes: Obtaining module 501, processing module 502, and splicing module 503.
  • the second obtaining module 501 is configured to use a layer in the picture file to be processed as a picture to be processed, wherein the picture file to be processed includes multiple layers.
  • the processing module 502 is used to process the picture to be processed to obtain the processed picture corresponding to the picture to be processed. Specifically, any picture processing method provided in this application can be used for processing, or the processing module 502 includes any picture provided in this application.
  • the splicing module 503 is used for splicing several processed pictures into an atlas.
  • the atlas processing device further includes: a generating module for generating atlas attribute files, where the atlas attribute files include the name of the processed picture, the relative rotation of the processed picture and the corresponding picture to be processed The angle, the coordinates of the center point of the processed image, the width of the processed image, and the height of the processed image.
  • a generating module for generating atlas attribute files, where the atlas attribute files include the name of the processed picture, the relative rotation of the processed picture and the corresponding picture to be processed The angle, the coordinates of the center point of the processed image, the width of the processed image, and the height of the processed image.
  • the coordinate O(x o , y o ) of the center point of the processed picture is calculated using the following formula:
  • the width W of the processed image is calculated using the following formula:
  • the height H of the processed image is calculated using the following formula:
  • x max is the largest first coordinate of the pixel in the processed image
  • x min is the smallest first coordinate of the pixel in the processed image
  • y max is the largest second coordinate of the pixel in the processed image
  • y min is The smallest second coordinate of the pixel in the processed picture
  • ⁇ x is the offset of the center point of the processed picture relative to the initial center point of the picture to be processed in the first direction
  • ⁇ y is the center point of the processed picture relative to the picture to be processed The offset of the initial center point in the second direction, where the first coordinate is the coordinate in the first direction
  • the second coordinate is the coordinate in the second direction.
  • the specific steps performed by the generating module include: writing the layer name corresponding to the processed image into the name of the processed image; when two or more processed images have the same layer name, processing The layer name and layer number corresponding to the post picture are written into the name of the processed picture.
  • the steps specifically performed by the second acquiring module 501 include: when the layer is not a text layer, a background layer, or a hidden layer, using a layer in the psd format picture file as a picture to be processed.
  • FIG. 13 is a block diagram of the animation production device provided in the sixth embodiment of the application. As shown in FIG. 13, the device includes: third The acquisition module 601, the conversion module 602, and the production module 603.
  • the third obtaining module 601 is used to obtain an atlas corresponding to the animation, where the atlas can be obtained by using any of the atlas processing methods provided in this application, or the atlas can be obtained using any one of the atlas provided in this application.
  • the processing device of this atlas is obtained.
  • the conversion module 602 is used to convert each processed picture in the atlas into an initial angle picture, where the initial angle picture is the picture when the processed picture is at the angle of the picture to be processed; the production module 603 is used to make animations based on all the initial angle pictures .
  • the steps specifically performed by the conversion module 602 include: obtaining the center point and degree parameters of the processed picture, where the angle parameter is the relative rotation angle of the processed picture and the corresponding picture to be processed; Rotate around the center point of the processed image.
  • This embodiment also provides a computer device, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a cabinet server (including independent servers, or A server cluster composed of multiple servers), etc.
  • the computer device 01 of this embodiment at least includes but is not limited to: a memory 011 and a processor 012 that can be communicably connected to each other through a system bus, as shown in FIG.
  • FIG. 14 only shows the computer device 01 with the component memory 011 and the processor 012, but it should be understood that it is not required to implement all the illustrated components, and more or less may be implemented instead. Components.
  • the memory 011 (readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), Read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, etc.
  • the memory 011 may be an internal storage unit of the computer device 01, such as a hard disk or memory of the computer device 01.
  • the memory 011 may also be an external storage device of the computer device 01, such as a plug-in hard disk, a smart media card (SMC), and a secure digital (Secure Digital, SD card, Flash Card, etc.
  • the memory 011 may also include both an internal storage unit of the computer device 01 and an external storage device thereof.
  • the memory 011 is generally used to store the operating system and various application software installed in the computer device 01, such as the program code of the image processing device, the processing device of atlas, or the device for producing animation provided in the above embodiments.
  • the memory 011 can also be used to temporarily store various types of data that have been output or will be output.
  • the processor 012 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chips.
  • the processor 012 is generally used to control the overall operation of the computer device 01.
  • the processor 012 is used to run the program code or processing data stored in the memory 011, such as a picture processing method, an atlas processing method, and a production method of animation.
  • This embodiment also provides a computer-readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), only Read memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, server, App application mall, etc., on which computer readable Instruction, the corresponding function is realized when the program is executed by the processor.
  • the computer-readable storage medium of this embodiment is used to store the image processing method, the atlas processing method or the animation production method, and when executed by the processor, the image processing method, the atlas processing method or the animation production method provided in the above embodiments are implemented .

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Geometry (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本申请提供了一种图片处理方法、图集处理方法、计算机设备和存储介质。该图片处理方法包括:获取待处理图片,其中,待处理图片包括多个像素,多个像素包括用于构成图像的第一像素和用于构成图像背景的第二像素;将待处理图片旋转,其中,每旋转一个角度,得到一个中间图片;在待处理图片和若干中间图片中,选择至少两个图片,分别计算包围图像的包围盒面积;在包围盒面积最小的图片中,去除包围盒外的第二像素,得到处理后图片。通过本申请,能够减小图片,并且在生成图集时,减小图集体积,提升图集空间利用率。

Description

图片处理方法、图集处理方法、计算机设备和存储介质
本申请要求于2019年3月25日提交中国专利局、申请号为201910228955.5、发明名称为“图片处理方法、图集处理方法、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据处理技术领域,尤其涉及一种图片处理方法、图集处理方法、计算机设备和存储介质。
背景技术
在动画、漫画、影视以及游戏等相关产业中,初始阶段需要在制图软件中设计和制作人物、动物或器具等形象,通常情况下,这些形象由多个图像组成,在将制图软件制作的形象导出之后,进行后续的动作设计等处理之前,会将形象拆分为不同的图像单元,每个图像单元包括一个或多个图像,以实现针对单个图像单元的控制。
现有技术中,在采用Photoshop制作上述形象时,分布于多个图层中,现有技术在将形象拆分为不同的图像单元时,会把所有图层属性隐藏,然后显示出形象整体,再按照图像进行分割裁剪。发明人研究发现,这种处理方式存在以下两个方面的问题:第一,裁剪后形成的碎图体积较大,限制了后续处理程序图片载入速度的进一步提升和内存消耗的进一步减小;第二,这种裁剪方法速度较慢,特别是针对复杂的形象,读取数据并显示图像的时间长,且需要大量的裁剪步骤,整体响应时间较长。此外,现有技术中对形象拆分工具为Photoshop的脚本工具,每次进行形象拆分时,均需要打开Photoshop,操作复杂。
发明内容
本申请的目的是提供一种图片处理方法、图集处理方法、计算机设备和存储介质,用于解决现有技术中图片较大,生成图集体积大、图集空间利用率低的技术问题。
为实现上述目的,本申请提供了一种图片处理方法。
该图片处理方法包括:获取待处理图片,其中,待处理图片包括多个像素,多个像素包括用于构成图像的第一像素和用于构成图像背景的第二像素;将待处理图片旋转,其中,每旋转一个角度,得到一个中间图片;在待处理图片和若干中间图片中,选择至少两个图片,分别计算包围图像的包围盒面积;在包围盒面积最小的图片中,去除包围盒外的第二像素,得到处理后图片。
为实现上述目的,本申请还提供了一种图集处理方法。
该图集处理方法包括:将待处理图片文件中的一个图层作为一个待处理图片,其中,待处理图片文件包括多个图层;对待处理图片采用本申请提供的任意一种图片处理方法进 行处理,得到待处理图片对应的处理后图片;将若干处理后图片拼为图集。
为实现上述目的,本申请还提供了一种动画的制作方法。
该动画的制作方法包括:获取动画对应的图集,其中,图集采用采用本申请提供的任意一种图集处理方法得到;将图集中的各个处理后图片转换为初始角度图片,其中,初始角度图片为处理后图片处于待处理图片的角度时的图片;根据所有初始角度图片制作动画。
可选地,将图集中的各个处理后图片转换为初始角度图片的步骤包括:获取处理后图片的中心点和角度参数,其中,角度参数为处理后图片与对应的待处理图片的相对旋转角度;按照角度参数将处理后图片围绕处理后图片的中心点旋转。
为实现上述目的,本申请还提供一种计算机设备,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机可读指令,该处理器执行计算机可读指令时实现上述方法的步骤。
为实现上述目的,本申请还提供计算机可读存储介质,其上存储有计算机可读指令,该计算机可读指令被处理器执行时实现上述方法的步骤。
在本申请提供的图片处理方法、图集处理方法、计算机设备和存储介质,获取到待处理图片的数据为像素级数据或者可转化为像素级数据,其中,构成图像的像素为第一像素,构成图像背景的像素为第二像素,通过对待处理图片进行旋转,能够得到图像处于不同角度的图片,选择至少两个图片,分别计算图像的包围盒面积,最后在包围盒面积较小的图片中删除包围盒外的第二像素,以及可删除较多的第二像素,从而在不影响图像表达的基础上,减小了图片的大小,进而能够提升后续程序载入图片的速度,能够减小处理图片所需的内存消耗;此外,在生成图集时,能够减小图集体积,提升图集的空间利用率,提升图集的数据载入速度。
附图说明
图1为本申请实施例一提供的图片处理方法的流程图;
图2为本申请实施例提供的一种图片中图像包围盒的示意图;
图3为本申请实施例提供的另一种图片中图像包围盒的示意图;
图4为本申请实施例一提供的图片处理方法的中计算待处理图片上包围图像的包围盒面积的步骤示意图;
图5为本申请实施例一提供的计算包围盒面积的示意图;
图6为本申请实施例二提供的图集处理方法的流程图;
图7为本申请实施例提供的待处理图片的示意图;
图8为本申请实施例提供的中间图片的示意图;
图9为本申请实施例三提供的动画的制作方法的流程图;
图10为本申请实施例提供的初始角度图片的示意图;
图11为本申请实施例四提供的图片处理装置的框图;
图12为本申请实施例五提供的图集处理装置的框图;
图13为本申请实施例六提供的动画的制作装置的框图;
图14为本申请实施例七提供的计算机设备的硬件结构图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
在本申请中,提供了一种图片处理方法、基于该图片处理方法的图集处理方法和基于该图集处理方法的动画的制作方法;同时还提供了一种计算机设备,该计算机设备的处理器执行存储器上的计算机可读指令时,实现上述任意一种方法的步骤;同时还提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机可读指令,该计算机可读指令被处理器执行时实现上述任意一种方法的步骤;此外,还提供了对应上述图片处理方法的图片处理装置,对应上述图集处理方法的图集处理装置和对应上述动画的制作方法的动画的制作装置。
在本申请提供的图片处理方法中,将待处理图片旋转,以使待处理图片处于不同角度,也即图片中的图像处于不同角度,然后计算计算图像在不同角度时包围图像的包围盒面积,以找到较小的图像包围盒,然后在得到较小图像包围盒的图片中,将包围盒外构成图像背景的像素去除,从而减小了图片的大小,进而能够提升后续程序载入图片的速度,能够减小后续程序处理图片所需的内存消耗;此外,在生成图集时,能够减小图集体积,提升图集的空间利用率,提升图集的数据载入速度。。
在本申请提供的图集处理方法中,待处理图片文件包括多个图层,将每个图层作为一个待处理图片,并按照本申请提供的任意一种图片处理方法对待处理图片进行处理,最终将处理后图片拼为图集,由于本申请提供的图片处理方法处理后的图片较小,从而形成的图集也较小,在同样大小的图集中可设置更多的图片,提升拼图的空间利用率,减小了后续程序在处理图集过程中占用的内存。此外,本申请直接读取待处理图片文件的文件流,将待处理图片文件中的每个图层单独作为一个图片,能够从像素层面进行图片的裁剪,与现有技术中读取数据后绘制图像,将所有图层属性隐藏,直接对整体形象进行图像分割相比,整体处理速度更快。
在本申请提供的动画的制作方法中,获取到的动画对应的图集为采用本申请提供的任意一种图集处理方法得到的图集,其中,图集中的图片由本申请提供的任意一种图片处理方法得到,因此,图集中的图片相对原始的待处理图片会有相应的旋转角度,在该动画的制作方法中,得到图集后先将图集中的各个图片旋转回原始的角度得到初始角度图片,在初始角度图片中,图像的角度恢复至原始角度,然后对各个初始角度图片制作动画。一方 面,由于图集占用的内存较小,在动画制作过程中,减少设备内存的占用,另一方面,在制作动画前保证图像处于原始角度,无需用户对图像再做角度调整,提升用户体检。
关于本申请提供的图片处理方法、图集处理方法和动画的制作方法,对应于各方法的装置,以及计算机设备和计算机存储介质的具体实施例,将在下文通过各个实施例详细描述。
实施例一
本申请实施例提供了一种图片处理方法,具体地,图1为本申请实施例一提供的图片处理方法的流程图,如图1所示,该实施例提供的图片处理方法,包括如下的步骤S101至步骤S104。
步骤S101:获取待处理图片。
其中,待处理图片包括多个像素,多个像素包括用于构成图像的第一像素和用于构成图像背景的第二像素。其中,构成图像背景的各个第二像素可采用相同的灰度,构成图像的第一像素根据具体图像在各个位置具有相应的灰度。
可选地,第二像素为透明像素,第一像素为非透明像素,也即第一像素不具有透明度,第二像素具有预定的透明度。从而在像素层面的处理过程中,能够通过像素的透明度快速识别出第一像素和第二像素,提升像素处理的速度,进而提升图片处理的速度。
步骤S102:将待处理图片旋转,每旋转一个角度,得到一个中间图片。
可选地,首先确定待处理图片中图像处于原始角度时的包围盒,定义为原始包围盒,然后以原始包围盒的中心为旋转中心旋转图片,每旋转一个角度,得到一个中间图片,通过旋转,待处理图片以及各中间图片,每个图片中图像的角度均不同,相应的,每个图片中图像的包围盒的面积也不同,其中,包围盒是体积稍大于图像、将图像整体包围且特性简单的几何体。
图2为本申请实施例提供的一种图片中图像包围盒的示意图,图3为本申请实施例提供的另一种图片中图像包围盒的示意图,如图2和图3所示,两图示出的图片处于不同角度,同一图像处于不同角度,包围盒B的面积不同。
其中,需要说明的是,在将待处理图片旋转的具体步骤中,可对整体图片的数据进行处理,以实现整个图片的旋转,或者也可以对图片的部分区域的数据进行处理,以实现包括图像的部分区域的旋转;此外,图像处于不同角度时,对应的包围盒的面积不同,但包围盒的轮廓和角度相同。
步骤S103:在待处理图片和若干中间图片中,选择至少两个图片,分别计算包围图像的包围盒面积。
需要说明的是,该实施例中并不限定中间图片的个数。在该步骤中,从待处理图片和若干中间图片中,选择至少两个图片计算图像的包围盒面积。
步骤S104:在包围盒面积最小的图片中,去除包围盒外的第二像素,得到处理后图片。
选择包围盒面积最小的图片去除包围盒外的第二像素,能够去除较多的第二像素,从而减小得到的处理后图片的大小。
采用该实施例提供的图片处理方法,获取到的图片数据为像素级数据或者可转化为像素级数据,其中,构成图像的像素为第一像素,构成图像背景的像素为第二像素,通过对待处理图片进行旋转,能够得到图像处于不同角度的图片,选择至少两个图片,分别计算图像的包围盒面积,最后在包围盒面积较小的图片中删除包围盒外的第二像素,以及可删除较多的第二像素,从而在不影响图像表达的基础上,减小了图片的大小,进而能够提升后续程序载入图片的速度,能够减小处理图片所需的内存消耗;此外,在生成图集时,能够减小图集体积,提升图集的空间利用率,提升图集的数据载入速度。
可选地,在一种实施例中,在上述步骤S102中,将待处理图片在预定角度范围内,以预定间隔角度进行旋转。在上述步骤S103中,在待处理图片和若干中间图片中,选择所有的图片,分别计算包围图像的包围盒面积,从而在步骤S104中,能够在处于预定角度范围内各个角度的图像的包围盒中,找到一个相对较小的包围盒,以进一步减小图片的大小。
进一步可选地,在一种实施例中,预定角度范围为0度至90度,预定间隔角度为1度,也即,在上述步骤S102中,将待处理图片在0度至90度之间每隔1度旋转一次,并得到一个中间图片,共得到89个中间图片,上述步骤S103中,对待处理图片和89个中间图片分别计算包围图像的包围盒面积,从而在步骤S104中,能够在90个角度的图像的包围盒中,也即90个包围盒中找到一个最小的包围盒,以进一步减小图片的大小。其中,在0度至90度之间,图像处于θ度时的包围盒面积与图像处于90*N+θ度θ度时的包围盒面积相等,其中,N=1,2或3,因此,在上述90个包围盒中找到最小的包围盒,也即在360度的旋转的空间中找到最小的包围盒,因此,将预定角度范围设定为0度至90度,在0度至90度之间确定出最小包围盒,能够避免冗余计算,减小数据运算量。将预定间隔角度设定为1度,能够在中间图片量以及数据精度方面得到平衡。
可选地,在一种实施例中,请继续参考图2,图2示出一种待处理图片S,其包括多个像素P,各个像素P在第一方向a上的坐标为第一坐标x,在第二方向b上的坐标为第二坐标y,其中,第一方向a和第二方向b垂直,也即,各个像素P在第一方向a和第二方向b上分别排列,形成像素阵列,在待处理图片S中,图像的包围盒B包括在第一方向a上延伸的两个第一边A1和在第二方向b上延伸的两个第二边A2。需要说明的是,图2中仅示出部分像素的轮廓,同时,图像的边缘也简化为直线,事实上,在像素级别来看,图像的边缘应为锯齿形。
采用该实施例提供的图片处理方法,设置包围盒为矩形,图形简单,数据处理过程中几何计算量小。同时,包围盒的边框延伸方向与像素排列方向一致,从而能够在删除包围盒外的第二像素时,增加删除量,以尽可能的减小图片大小。
可选地,在一种实施例中,图4为本申请实施例一提供的图片处理方法的中计算待处理图片上包围图像的包围盒面积的步骤示意图,图5为本申请实施例一提供的计算包围盒面积的示意图,如图4和图5所示,在步骤S103中,计算待处理图片中包围图像的包围盒面积的步骤具体包括如下的步骤S1031至步骤S1035,以下步骤均是针对待处理图片的步骤,具体地:
步骤S1031:将第一坐标x相同的一组像素P作为一个像素列Px,在每个像素列Px中,获取第二坐标最大的第一像素和第二坐标最小的第一像素,写入第一数组。
步骤S1032:将第二坐标相同的一组像素P作为一个像素行Py,在每个像素行Py中,获取第一坐标最大的第一像素和第一坐标最小的第一像素,写入第二数组。
具体地,针对上述步骤S1031和步骤S1032,在一种实施例中,可对待处理图片在第一方向上从左到右进行扫描,针对每个像素列,找出最上和最下的不透明像素,存入第一数组,在第二方向上从上到下进行扫描,针对每个像素行,找出最左和最右的不透明像素,存入第二数组。
步骤S1033:计算第一数组和第二数组的交集,得到初始凸点数组。
通过上述两个步骤,得到的第一数组和第二数组中的像素构成图像的边缘。计算第一数组和第二数组的交集,得到的像素为图像边缘的凸点,本申请将该交接命名为初始凸点数组。
如图5所示,初始凸点数组中包括的像素为像素P1、像素P2和像素P3、像素P4。需要说明的是,图5仅示意性的给出一种图像对应的初始凸点数组,并不构成本申请对图像的限定。
步骤S1034:在初始凸点数组中,计算最大的第一坐标和最小的第一坐标的差得到第一初始差值,计算最大的第二坐标和最小的第二坐标的差得到第二初始差值。
步骤S1035:计算第一初始差值和第二初始差值的积,得到待处理图片中包围图像的包围盒的面积。
请继续参考图5,在初始凸点数组中,最大的第一坐标为像素P4的第一坐标x4,最小的第一坐标为像素P1的第一坐标x1,最大的第二坐标为像素P1的第二坐标y1,最小的第二坐标为像素P3的第二坐标y3,则(x4-x1)*(y3-y1)得到的积,也即包围盒B的面积。
可选地,在一种实施例中,在步骤S102中,将待处理图片旋转时,具体包括如下的步骤:确定待处理图片中图像的包围盒中心,得到初始中心点O;将初始凸点数组中的各像素的坐标绕初始中心点O旋转,得到中间凸点数组。
在该实施例提供的图片处理方法中,将对处理图片的旋转,简化为对凸点数组的旋转,减少了数据处理量。
可选地,在一种实施例中,在步骤S103中,计算中间图片中包围图像的包围盒面积的步骤具体包括:在中间凸点数组中,计算最大的第一坐标和最小的第一坐标的差得到第一中间差值,计算最大的第二坐标和最小的第二坐标的差得到第二中间差值;计算第一中间差值和第二中间差值的积,得到中间图片中包围图像的包围盒的面积。
在该实施例提供的图片处理方法中,基于上述中间凸点数组计算中间图片中包围图像的包围盒面积,相比直接获取中间图片中图像的凸点进行计算,简化了计算复杂度,减少了数据处理量。
可选地,在一种实施例中,在步骤S101中,获取待处理图片的步骤包括:获取psd 格式的图片文件,其中,Psd格式的图片文件是Photoshop自身的图像格式文件,是Photoshop的设计文件。获取图片文件中的一个图层,得到待处理图片;去除待处理图片中最小包围盒外的第二像素后,得到处理后图片,在得到处理后图片之后,图片处理方法还包括:将处理后图片存储为png格式,其中,png是一种无损压缩的位图片形格式。
采用该实施例提供的图片处理方法,待处理图片为来源于psd格式的一个图层,最后将处理后的图片存储为png格式,方便后续其他图片处理工具的调用。
以上为本申请实施例提供的图片处理方法的实施例,本申请提供的图集处理方法包括上述图片处理方法,因此,在下述描述本申请提供的图集处理方法的实施例中,关于上述图片处理方法部分的描述较简略,具体技术特征和相应的技术效果,可参考上文。
实施例二
本申请实施例提供了一种图集处理方法,具体地,图6为本申请实施例二提供的图集处理方法的流程图,如图6所示,该实施例提供的图集处理方法,包括如下的步骤S201至步骤S203。
步骤S201:将psd格式的图片文件中的一个图层作为一个待处理图片。
在该步骤中,获取到的psd格式的图片文件是图片文件的文件流,具体读取文件流的方法可以采用现有技术中已有的读取方法。
步骤S202:对待处理图片进行处理,得到处理后图片。
其中,该步骤具体可采用本申请提供的任意一种图片处理方法进行处理,具体参考上文。
步骤S203:将若干处理后图片拼为一个图集。
采用该实施例提供的图集处理方法,能够将psd格式的图片文件处理为图集,在处理过程中,将图片文件中的每个图层作为一个待处理图片进行处理,处理后得到较小的图片,然后再拼为一个图集,从而形成的图集也较小,在同样大小的图集中可设置更多的图片,提升拼图的空间利用率,减小了后续程序在处理图集过程中占用的内存。此外,本申请直接读取待处理图片文件的文件流,将待处理图片文件中的每个图层单独作为一个图片,能够从像素层面进行图片的裁剪,与现有技术中读取数据后绘制图像,将所有图层属性隐藏,直接对整体形象进行图像分割相比,整体处理速度更快。
在一种实施例中,如下表一,示出了采用现有技术中Photoshop的jsx插件,和采用本申请实施例,将psd格式的图片文件裁剪为图像并拼为图集的耗时对比:
表一 现有技术与本申请耗时对比表
  jsx插件耗时 本申请实施例耗时
48个图层,2000*2000 48秒 8秒
48个图层,4000*4000 108秒 18秒
39个图层,500*400 28秒 0.2秒
36个图层,1337*752 47秒 0.9秒
如上表一所示,对48个图层,大小为2000*2000的psd格式的文件,jsx插件读取数据、绘制图像然后处理为图集耗时48秒,本申请实施例读取文件流处理为图集耗时8秒;对48个图层,大小为4000*4000的psd格式的图片文件,jsx插件读取数据、绘制图像然后处理为图集耗108秒,本申请实施例读取文件流处理为图集耗时18秒;对39个图层,大小为500*400的psd格式的图片文件,jsx插件读取数据、绘制图像然后处理为图集耗时28秒,本申请实施例读取文件流处理为图集耗时0.2秒;对36个图层,大小为1337*752的psd格式的图片文件,jsx插件读取数据、绘制图像然后处理为图集耗时47秒,本申请实施例读取文件流处理为图集耗时0.9秒。从中可以看出,相对现有技术,采用本申请实施例提供的图集处理方法的整体处理速度更快。
可选地,在一种实施例中,图集处理方法还包括:生成图集属性文件,其中,图集属性文件包括处理后图片的名称、处理后图片与对应的待处理图片的相对旋转角度、处理后图片的中心点的坐标、处理后图片的宽度和处理后图片的高度。
采用该实施例提供的图集处理方法,形成图集后生成图集属性文件,例如图集属性文件采用JSON的格式,在后续对图集的处理过程中,可通过解析图集属性文件得到相关参数,以便进一步处理。
图7为本申请实施例提供的待处理图片的示意图,图8为本申请实施例提供的中间图片的示意图,可选地,在一种实施例中,如图7所示,在待处理图片中,包围盒B'具有中心点O',包围盒B'绕中心点O'旋转后,得到中间图片如图8所示,在图8所示的中间图片中,新的包围盒B的中心点O(x o,y o),相对原中心点O'发生了一定的偏移,定义在第一方向a上的偏移量为Δx,在第二方向b上的偏移量为Δy,若图8中示出的中间图片为图像的包围盒最小时的图片,因此,处理后图片的中心点的坐标O(x o,y o)采用以下公式计算:
Figure PCTCN2019128467-appb-000001
Figure PCTCN2019128467-appb-000002
处理后图片的宽度W,也即最小包围盒的宽度W,采用以下公式计算:
W=x max-x min
处理后图片的高度H,也即最小包围盒的高度W,采用以下公式计算:
H=y max-y min
其中,x max为处理后图片中像素的最大的第一坐标,x min为处理后图片中像素的最小的第一坐标,y max为处理后图片中像素的最大的第二坐标,y min为处理后图片中像素的最小的第二坐标,Δx为处理后图片的中心点O(x o,y o)相对待处理图片的初始中心点O'在第一方向a上的偏移量,Δy为处理后图片的中心点O(x o,y o)相对待处理图片的初始中心点O'在第二方向b上的偏移量,其中,第一坐标为在第一方向a上的坐标,第二坐标为在第二方向b上的坐标。
可选地,在一种实施例中,生成图集属性文件的步骤包括:将处理后图片对应的图层 名称写入处理后图片的名称;当两个或两个以上的处理后图片对应的图层名称相同时,将处理后图片对应的图层名称和图层序号写入处理后图片的名称。
采用该实施例提供的图集处理方法,在处理后图片的名称中体现对应图层的名称,提高后续处理过程对数据的可读性,同时对不同图层采用相同名称的情况,进一步将图层序号引入处理后图片的名称中,避免处理后图片名称产生混乱。
可选地,在一种实施例中,在步骤S201中,将psd格式的图片文件中的一个图层作为一个待处理图片时,对图层的属性进行判断,当图层不为文本图层、背景图层或隐藏图层时,将psd格式的图片文件中的一个图层作为一个待处理图片,当图层为文本图层、背景图层或隐藏图层时,不对文本图层、背景图层或隐藏图层进行处理。
采用该实施例提供的图集处理方法,不对文本图层、背景图层或隐藏图层进行处理,在不造成图像数据缺失的同时,减少了数据处理量。
实施例三
本申请实施例提供了一种动画的制作方法,具体地,图9为本申请实施例三提供的动画的制作方法的流程图,如图9所示,该实施例提供的动画的制作方法,包括如下的步骤S301至步骤S303。
步骤S301:获取动画对应的图集。
其中,该图集可采用本申请提供的任意一种图集处理方法得到,具体参考上文。
步骤S302:将图集中的各个处理后图片转换为初始角度图片。
其中,初始角度图片为处理后图片处于待处理图片的角度时的图片。
步骤S303:根据所有初始角度图片制作动画。
采用该实施例提供的动画制作方法,应用本申请提供的图集的处理方法处理后的图集,在将图集制作动画时,现将图集中的各个图片转换为初始角度图片,使得图片中的图像与初始角度一致,一方面,由于图集占用的内存较小,在动画制作过程中,减少设备内存的占用,另一方面,在制作动画前保证图像处于原始角度,无需用户对图像再做角度调整,提升用户体检。
可选地,在一种实施例中,在步骤S302中,将图集中的各个处理后图片转换为初始角度图片时,获取处理后图片的中心点和角度参数,该中心点和角度参数可通过处理后图片的图集属性文件中获取,其中,角度参数为处理后图片与对应的待处理图片的相对旋转角度,然后按照角度参数将处理后图片围绕处理后图片的中心点旋转。如图10所示,图10为本申请实施例提供的初始角度图片的示意图,对比图7与图10,图像的角度一致。
实施例四
对应于上述实施例一,本申请实施例四提供了一种图片处理装置,图11为本申请实施例四提供的图片处理装置的框图,如图11所示,该装置包括:第一获取模块401、旋转模块402、计算模块403和裁剪模块404。
其中,第一获取模块401用于获取待处理图片,其中,待处理图片包括多个像素,多个像素包括用于构成图像的第一像素和用于构成图像背景的第二像素。旋转模块402用于 将待处理图片旋转,其中,每旋转一个角度,得到一个中间图片。计算模块403用于在待处理图片和若干中间图片中,选择至少两个图片,分别计算包围图像的包围盒面积。裁剪模块404用于在包围盒面积最小的图片中,去除包围盒外的第二像素,得到处理后图片。
可选地,旋转模块402具体执行的步骤包括:将待处理图片在预定角度范围内,以预定间隔角度进行旋转;计算模块403具体执行的步骤包括:在待处理图片和若干中间图片中,选择所有的图片,分别计算包围图像的包围盒面积。
可选地,像素在第一方向上的坐标为第一坐标,在第二方向上的坐标为第二坐标,其中,第一方向和第二方向垂直,在待处理图片中,包围盒包括在第一方向上延伸的两个第一边和在第二方向上延伸的两个第二边。
可选地,计算模块403在计算待处理图片中包围图像的包围盒面积时,执行的步骤包括:针对待处理图片,将第一坐标相同的一组像素作为一个像素列,在每个像素列中,获取第二坐标最大的第一像素和第二坐标最小的第一像素,写入第一数组;将第二坐标相同的一组像素作为一个像素行,在每个像素行中,获取第一坐标最大的第一像素和第一坐标最小的第一像素,写入第二数组;计算第一数组和第二数组的交集,得到初始凸点数组;在初始凸点数组中,计算最大的第一坐标和最小的第一坐标的差得到第一初始差值,计算最大的第二坐标和最小的第二坐标的差得到第二初始差值;计算第一初始差值和第二初始差值的积,得到待处理图片中包围图像的包围盒的面积。
可选地,旋转模块402具体执行的步骤包括:确定待处理图片中图像的包围盒中心,得到初始中心点;将初始凸点数组中的各像素的坐标绕初始中心点旋转,得到中间凸点数组。
可选地,计算模块403在计算中间图片中包围图像的包围盒面积时,执行的步骤包括:在中间凸点数组中,计算最大的第一坐标和最小的第一坐标的差得到第一中间差值,计算最大的第二坐标和最小的第二坐标的差得到第二中间差值;计算第一中间差值和第二中间差值的积,得到中间图片中包围图像的包围盒的面积。
可选地,预定角度范围为0度至90度,预定间隔角度为1度。
可选地,第二像素为透明像素,第一像素为非透明像素。
可选地,第一获取模块401执行的步骤包括:获取psd格式的图片文件;获取图片文件中的一个图层,得到待处理图片;该装置还包括存储模块,用于将处理后图片存储为png格式。
实施例五
对应于上述实施例二,本申请实施例五提供了一种图集处理装置,图12为本申请实施例五提供的图集处理装置的框图,如图12所示,该装置包括:第二获取模块501、处理模块502和拼接模块503。
其中,第二获取模块501用于将待处理图片文件中的一个图层作为一个待处理图片,其中,待处理图片文件包括多个图层。处理模块502用于对待处理图片进行处理,得到待处理图片对应的处理后图片,具体可采用本申请提供的任意一种图片的处理方法进行处理, 或者,该处理模块502包括本申请提供的任意一种图片的处理装置。拼接模块503用于将若干处理后图片拼为图集。
可选地,图集处理装置还包括:生成模块,该生成模块用于生成图集属性文件,其中,图集属性文件包括处理后图片的名称、处理后图片与对应的待处理图片的相对旋转角度、处理后图片的中心点的坐标、处理后图片的宽度和处理后图片的高度。
可选地,处理后图片的中心点的坐标O(x o,y o)采用以下公式计算:
Figure PCTCN2019128467-appb-000003
Figure PCTCN2019128467-appb-000004
处理后图片的宽度W采用以下公式计算:
W=x max-x min
处理后图片的高度H采用以下公式计算:
H=y max-y min
其中,x max为处理后图片中像素的最大的第一坐标,x min为处理后图片中像素的最小的第一坐标,y max为处理后图片中像素的最大的第二坐标,y min为处理后图片中像素的最小的第二坐标,Δx为处理后图片的中心点相对待处理图片的初始中心点在第一方向上的偏移量,Δy为处理后图片的中心点相对待处理图片的初始中心点在第二方向上的偏移量,其中,第一坐标为在第一方向上的坐标,第二坐标为在第二方向上的坐标。
可选地,生成模块具体执行的步骤包括:将处理后图片对应的图层名称写入处理后图片的名称;当两个或两个以上的处理后图片对应的图层名称相同时,将处理后图片对应的图层名称和图层序号写入处理后图片的名称。
可选地,第二获取模块501具体执行的步骤包括:当图层不为文本图层、背景图层或隐藏图层时,将psd格式的图片文件中的一个图层作为一个待处理图片。
实施例六
对应于上述实施例三,本申请实施例六提供了一种动画的制作装置,图13为本申请实施例六提供的动画的制作装置的框图,如图13所示,该装置包括:第三获取模块601、转换模块602和制作模块603。
其中,第三获取模块601用于获取动画对应的图集,其中,该图集具体可采用本申请提供的任意一种图集的处理方法得到,或者,该图集采用本申请提供的任意一种图集的处理装置得到。转换模块602用于将图集中的各个处理后图片转换为初始角度图片,其中,初始角度图片为处理后图片处于待处理图片的角度时的图片;制作模块603用于根据所有初始角度图片制作动画。
可选地,转换模块602具体执行的步骤包括:获取处理后图片的中心点和度参数,其中,角度参数为处理后图片与对应的待处理图片的相对旋转角度;按照角度参数将处理后图片围绕处理后图片的中心点旋转。
实施例七
本实施例还提供一种计算机设备,如可以执行程序的智能手机、平板电脑、笔记本电脑、台式计算机、机架式服务器、刀片式服务器、塔式服务器或机柜式服务器(包括独立的服务器,或者多个服务器所组成的服务器集群)等。如图3所示,本实施例的计算机设备01至少包括但不限于:可通过系统总线相互通信连接的存储器011、处理器012,如图14所示。需要指出的是,图14仅示出了具有组件存储器011和处理器012的计算机设备01,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。
本实施例中,存储器011(即可读存储介质)包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,存储器011可以是计算机设备01的内部存储单元,例如该计算机设备01的硬盘或内存。在另一些实施例中,存储器011也可以是计算机设备01的外部存储设备,例如该计算机设备01上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,存储器011还可以既包括计算机设备01的内部存储单元也包括其外部存储设备。本实施例中,存储器011通常用于存储安装于计算机设备01的操作系统和各类应用软件,例如上述实施例提供的图片处理装置、图集的处理装置或者动画的制作装置的程序代码等。此外,存储器011还可以用于暂时地存储已经输出或者将要输出的各类数据。
处理器012在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器012通常用于控制计算机设备01的总体操作。本实施例中,处理器012用于运行存储器011中存储的程序代码或者处理数据,例如图片处理方法、图集处理方法、货动画的制作方法等。
实施例八
本实施例还提供一种计算机可读存储介质,如闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘、服务器、App应用商城等等,其上存储有计算机可读指令,程序被处理器执行时实现相应功能。本实施例的计算机可读存储介质用于存储图片处理方法、图集处理方法或动画的制作方法,被处理器执行时实现上述实施例提供的图片处理方法、图集处理方法或动画的制作方法。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (20)

  1. 一种图片处理方法,包括:
    获取待处理图片,其中,所述待处理图片包括多个像素,多个所述像素包括用于构成图像的第一像素和用于构成图像背景的第二像素;
    将所述待处理图片旋转,其中,每旋转一个角度,得到一个中间图片;
    在所述待处理图片和若干所述中间图片中,选择至少两个图片,分别计算包围所述图像的包围盒面积;
    在所述包围盒面积最小的图片中,去除所述包围盒外的所述第二像素,得到处理后图片。
  2. 根据权利要求1所述的图片处理方法,
    将所述待处理图片旋转的步骤具体为:将所述待处理图片在预定角度范围内,以预定间隔角度进行旋转;
    在所述待处理图片和若干所述中间图片中,选择至少两个图片,分别计算包围所述图像的包围盒面积的步骤具体为:在所述待处理图片和若干所述中间图片中,选择所有的图片,分别计算包围所述图像的包围盒面积。
  3. 根据权利要求1所述的图片处理方法,所述像素在第一方向上的坐标为第一坐标,在第二方向上的坐标为第二坐标,其中,所述第一方向和所述第二方向垂直,在所述待处理图片中,所述包围盒包括在所述第一方向上延伸的两个第一边和在所述第二方向上延伸的两个第二边。
  4. 根据权利要求3所述的图片处理方法,计算所述待处理图片中包围所述图像的包围盒面积的步骤包括:
    针对所述待处理图片,将所述第一坐标相同的一组所述像素作为一个像素列,在每个所述像素列中,获取所述第二坐标最大的所述第一像素和所述第二坐标最小的所述第一像素,写入第一数组;
    将所述第二坐标相同的一组所述像素作为一个像素行,在每个所述像素行中,获取所述第一坐标最大的所述第一像素和所述第一坐标最小的所述第一像素,写入第二数组;
    计算所述第一数组和所述第二数组的交集,得到初始凸点数组;
    在所述初始凸点数组中,计算最大的所述第一坐标和最小的所述第一坐标的差得到第一初始差值,计算最大的所述第二坐标和最小的所述第二坐标的差得到第二初始差值;
    计算所述第一初始差值和所述第二初始差值的积,得到所述待处理图片中包围所述图像的包围盒的面积。
  5. 根据权利要求4所述的图片处理方法,将所述待处理图片旋转的步骤包括:
    确定所述待处理图片中所述图像的包围盒中心,得到初始中心点;将所述初始凸点数组中的各像素的坐标绕所述初始中心点旋转,得到中间凸点数组。
  6. 根据权利要求5所述的图片处理方法,计算所述中间图片中包围所述图像的包围 盒的面积的步骤包括:
    在所述中间凸点数组中,计算最大的所述第一坐标和最小的所述第一坐标的差得到第一中间差值,计算最大的所述第二坐标和最小的所述第二坐标的差得到第二中间差值;
    计算所述第一中间差值和所述第二中间差值的积,得到所述中间图片中包围所述图像的包围盒的面积。
  7. 根据权利要求2所述的图片处理方法,所述预定角度范围为0度至90度,所述预定间隔角度为1度。
  8. 根据权利要求1所述的图片处理方法,所述第二像素为透明像素,所述第一像素为非透明像素。
  9. 根据权利要求1所述的图片处理方法,
    获取待处理图片的步骤包括:获取psd格式的图片文件;获取所述图片文件中的一个图层,得到所述待处理图片;
    去除所述待处理图片中所述最小包围盒外的所述第二像素后,得到处理后图片,在得到所述处理后图片之后,所述图片处理方法还包括:将所述处理后图片存储为png格式。
  10. 一种图集处理方法,包括:
    将待处理图片文件中的一个图层作为一个待处理图片,其中,所述待处理图片文件包括多个所述图层;
    对所述待处理图片采用以下的图片处理方法进行处理,得到所述待处理图片对应的处理后图片,其中,所述图片处理方法包括:第一像素和用于构成图像背景的第二像素;将所述待处理图片旋转,其中,每旋转一个角度,得到一个中间图片;在所述待处理图片和若干所述中间图片中,选择至少两个图片,分别计算包围所述图像的包围盒面积;在所述包围盒面积最小的图片中,去除所述包围盒外的所述第二像素,得到处理后图片;
    将若干所述处理后图片拼为图集。
  11. 根据权利要求10所述的图集处理方法,所述图集处理方法还包括:
    生成图集属性文件,其中,所述图集属性文件包括所述处理后图片的名称、所述处理后图片与对应的所述待处理图片的相对旋转角度、所述处理后图片的中心点的坐标、所述处理后图片的宽度和所述处理后图片的高度。
  12. 根据权利要求11所述的图集处理方法,
    所述处理后图片的中心点的坐标O(x o,y o)采用以下公式计算:
    Figure PCTCN2019128467-appb-100001
    Figure PCTCN2019128467-appb-100002
    所述处理后图片的宽度W采用以下公式计算:
    W=x max-x min
    所述处理后图片的高度H采用以下公式计算:
    H=y max-y min
    其中,x max为所述处理后图片中像素的最大的第一坐标,x min为所述处理后图片中像素的最小的第一坐标,y max为所述处理后图片中像素的最大的第二坐标,y min为所述处理后图片中像素的最小的第二坐标,Δx为所述处理后图片的中心点相对所述待处理图片的初始中心点在第一方向上的偏移量,Δy为所述处理后图片的中心点相对所述待处理图片的初始中心点在第二方向上的偏移量,其中,所述第一坐标为在所述第一方向上的坐标,所述第二坐标为在所述第二方向上的坐标。
  13. 根据权利要求11所述的图集处理方法,生成图集属性文件的步骤包括:
    将所述处理后图片对应的图层名称写入所述处理后图片的名称;
    当两个或两个以上的所述处理后图片对应的图层名称相同时,将所述处理后图片对应的图层名称和图层序号写入所述处理后图片的名称。
  14. 根据权利要求10所述的图集处理方法,将psd格式的图片文件中的一个图层作为一个待处理图片的步骤具体为:
    当所述图层不为文本图层、背景图层或隐藏图层时,将psd格式的图片文件中的一个图层作为一个待处理图片。
  15. 一种动画的制作方法,包括:
    获取动画对应的图集,其中,所述图集采用以下的图集处理方法得到,其中,所述图集处理方法包括:将待处理图片文件中的一个图层作为一个待处理图片,其中,所述待处理图片文件包括多个所述图层;
    对所述待处理图片采用以下的图片处理方法进行处理,得到所述待处理图片对应的处理后图片,其中,所述图片处理方法包括:第一像素和用于构成图像背景的第二像素;将所述待处理图片旋转,其中,每旋转一个角度,得到一个中间图片;在所述待处理图片和若干所述中间图片中,选择至少两个图片,分别计算包围所述图像的包围盒面积;在所述包围盒面积最小的图片中,去除所述包围盒外的所述第二像素,得到处理后图片;将若干所述处理后图片拼为图集;
    将所述图集中的各个所述处理后图片转换为初始角度图片,其中,所述初始角度图片为所述处理后图片处于所述待处理图片的角度时的图片;
    根据所有所述初始角度图片制作动画。
  16. 根据权利要求15所述的动画的制作方法,将所述图集中的各个所述处理后图片转换为初始角度图片的步骤包括:
    获取所述处理后图片的中心点和角度参数,其中,所述角度参数为所述处理后图片与对应的所述待处理图片的相对旋转角度;
    按照所述角度参数将所述处理后图片围绕所述处理后图片的中心点旋转。
  17. 一种计算机设备,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现以下步骤:
    获取待处理图片,其中,所述待处理图片包括多个像素,多个所述像素包括用于构成图像的第一像素和用于构成图像背景的第二像素;
    将所述待处理图片旋转,其中,每旋转一个角度,得到一个中间图片;
    在所述待处理图片和若干所述中间图片中,选择至少两个图片,分别计算包围所述图像的包围盒面积;
    在所述包围盒面积最小的图片中,去除所述包围盒外的所述第二像素,得到处理后图片。
  18. 一种计算机设备,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现以下步骤:
    将待处理图片文件中的一个图层作为一个待处理图片,其中,所述待处理图片文件包括多个所述图层;
    对所述待处理图片采用以下的图片处理方法进行处理,得到所述待处理图片对应的处理后图片,其中,所述图片处理方法包括:获取待处理图片,其中,所述待处理图片包括多个像素,多个所述像素包括用于构成图像的第一像素和用于构成图像背景的第二像素;将所述待处理图片旋转,其中,每旋转一个角度,得到一个中间图片;在所述待处理图片和若干所述中间图片中,选择至少两个图片,分别计算包围所述图像的包围盒面积;在所述包围盒面积最小的图片中,去除所述包围盒外的所述第二像素,得到处理后图片;
    将若干所述处理后图片拼为图集。
  19. 一种计算机可读存储介质,其上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现以下步骤:
    获取待处理图片,其中,所述待处理图片包括多个像素,多个所述像素包括用于构成图像的第一像素和用于构成图像背景的第二像素;
    将所述待处理图片旋转,其中,每旋转一个角度,得到一个中间图片;
    在所述待处理图片和若干所述中间图片中,选择至少两个图片,分别计算包围所述图像的包围盒面积;
    在所述包围盒面积最小的图片中,去除所述包围盒外的所述第二像素,得到处理后图片。
  20. 一种计算机可读存储介质,其上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现以下步骤:
    将待处理图片文件中的一个图层作为一个待处理图片,其中,所述待处理图片文件包括多个所述图层;
    对所述待处理图片采用以下的图片处理方法进行处理,得到所述待处理图片对应的处理后图片,其中,所述图片处理方法包括:获取待处理图片,其中,所述待处理图片包括多个像素,多个所述像素包括用于构成图像的第一像素和用于构成图像背景的第二像素;将所述待处理图片旋转,其中,每旋转一个角度,得到一个中间图片;在所述待处理图片和若干所述中间图片中,选择至少两个图片,分别计算包围所述图像的包围盒面积;在所述包围盒面积最小的图片中,去除所述包围盒外的所述第二像素,得到处理后图片;
    将若干所述处理后图片拼为图集。
PCT/CN2019/128467 2019-03-25 2019-12-25 图片处理方法、图集处理方法、计算机设备和存储介质 WO2020192212A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP19920847.1A EP3929871A4 (en) 2019-03-25 2019-12-25 IMAGE PROCESSING METHOD, IMAGE SET PROCESSING METHOD, COMPUTER DEVICE AND STORAGE MEDIA
US17/448,295 US20220005151A1 (en) 2019-03-25 2021-09-21 Method of processing picture, computing device, and computer-program product

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910228955.5A CN111739084B (zh) 2019-03-25 2019-03-25 图片处理方法、图集处理方法、计算机设备和存储介质
CN201910228955.5 2019-03-25

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/448,295 Continuation US20220005151A1 (en) 2019-03-25 2021-09-21 Method of processing picture, computing device, and computer-program product

Publications (1)

Publication Number Publication Date
WO2020192212A1 true WO2020192212A1 (zh) 2020-10-01

Family

ID=72608506

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/128467 WO2020192212A1 (zh) 2019-03-25 2019-12-25 图片处理方法、图集处理方法、计算机设备和存储介质

Country Status (4)

Country Link
US (1) US20220005151A1 (zh)
EP (1) EP3929871A4 (zh)
CN (1) CN111739084B (zh)
WO (1) WO2020192212A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112800511B (zh) * 2020-12-31 2022-11-15 杭州群核信息技术有限公司 一种家装素材调整方法、装置、计算机设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101937571A (zh) * 2010-05-13 2011-01-05 上海尚果信息科技有限公司 二维动漫制作方法
US20170161592A1 (en) * 2015-12-04 2017-06-08 Pilot Ai Labs, Inc. System and method for object detection dataset application for deep-learning algorithm training
US20170228867A1 (en) * 2016-02-10 2017-08-10 Intel Corporation Method and system of image segmentation refinement for image processing
CN109242787A (zh) * 2018-08-15 2019-01-18 南京光辉互动网络科技股份有限公司 一种中小学艺术测评中绘画录入方法
CN109377499A (zh) * 2018-09-12 2019-02-22 中山大学 一种像素级物体分割方法及装置

Family Cites Families (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6750988B1 (en) * 1998-09-11 2004-06-15 Roxio, Inc. Method and system for scanning images in a photo kiosk
JP2001266138A (ja) * 2000-03-23 2001-09-28 Seiko Epson Corp 画像変換処理装置および画像変換処理方法ならびに情報記録媒体
GB2379848B (en) * 2001-08-17 2005-04-20 Massimo Bergamasco A rendering system
US8487939B2 (en) * 2005-04-12 2013-07-16 Emailfilm Technology, Inc. Embedding animation in electronic mail, text messages and websites
US8121441B2 (en) * 2007-10-26 2012-02-21 Murata Machinery, Ltd. Image processing apparatus, image scanning apparatus, image processing method, and image processing program
CN102129705A (zh) * 2010-01-18 2011-07-20 腾讯科技(深圳)有限公司 一种动画制作方法、装置和动画播放方法、装置
CN101789133B (zh) * 2010-01-27 2011-09-14 深圳市五巨科技有限公司 一种在移动终端中实现连续动画效果的方法和装置
US8427483B1 (en) * 2010-08-30 2013-04-23 Disney Enterprises. Inc. Drawing figures in computer-based drawing applications
CN102509104B (zh) * 2011-09-30 2013-03-20 北京航空航天大学 基于置信度图的增强现实场景虚拟对象判别和检测方法
US9196075B2 (en) * 2011-11-14 2015-11-24 Microsoft Technology Licensing, Llc Animation of computer-generated display components of user interfaces and content items
US9710950B2 (en) * 2012-04-27 2017-07-18 Adobe Systems Incorporated Extensible sprite sheet generation mechanism for declarative data formats and animation sequence formats
US20150178988A1 (en) * 2012-05-22 2015-06-25 Telefonica, S.A. Method and a system for generating a realistic 3d reconstruction model for an object or being
TW201528119A (zh) * 2014-01-13 2015-07-16 Univ Nat Taiwan Science Tech 一種基於筆影偵測模擬手繪板之方法
CN103985114B (zh) * 2014-03-21 2016-08-24 南京大学 一种监控视频人物前景分割与分类的方法
CN103996089B (zh) * 2014-06-12 2016-04-06 国家电网公司 基于gis的输电线路最优路径生成方法
CN104123742A (zh) * 2014-07-21 2014-10-29 徐才 一种将静态漫画图片转化为二维动画的方法和播放器
CN105498211B (zh) * 2015-12-11 2019-04-23 网易(杭州)网络有限公司 游戏中位置关系的处理方法和装置
US10249087B2 (en) * 2016-01-29 2019-04-02 Magic Leap, Inc. Orthogonal-projection-based texture atlas packing of three-dimensional meshes
CN106202744B (zh) * 2016-07-12 2019-09-13 中国能源建设集团广东省电力设计研究院有限公司 海上风电场集电系统避障路径优化方法和系统
CN106875492A (zh) * 2017-02-13 2017-06-20 华东师范大学 一种面向gpu包围盒碰撞检测方法
CN108230293A (zh) * 2017-05-31 2018-06-29 深圳市商汤科技有限公司 确定人脸图像质量的方法和装置、电子设备和计算机存储介质
CN109389558B (zh) * 2017-08-03 2020-12-08 广州汽车集团股份有限公司 一种消除图像边缘锯齿的方法及装置
CN109308386B (zh) * 2018-09-11 2023-04-21 深圳市彬讯科技有限公司 工程图墙体识别方法、装置及电子设备
CN109376383B (zh) * 2018-09-14 2022-09-30 长安大学 一种基于碰撞检测的爆炸视图生成方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101937571A (zh) * 2010-05-13 2011-01-05 上海尚果信息科技有限公司 二维动漫制作方法
US20170161592A1 (en) * 2015-12-04 2017-06-08 Pilot Ai Labs, Inc. System and method for object detection dataset application for deep-learning algorithm training
US20170228867A1 (en) * 2016-02-10 2017-08-10 Intel Corporation Method and system of image segmentation refinement for image processing
CN109242787A (zh) * 2018-08-15 2019-01-18 南京光辉互动网络科技股份有限公司 一种中小学艺术测评中绘画录入方法
CN109377499A (zh) * 2018-09-12 2019-02-22 中山大学 一种像素级物体分割方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3929871A4 *

Also Published As

Publication number Publication date
CN111739084B (zh) 2023-12-05
EP3929871A4 (en) 2022-05-04
EP3929871A1 (en) 2021-12-29
CN111739084A (zh) 2020-10-02
US20220005151A1 (en) 2022-01-06

Similar Documents

Publication Publication Date Title
US10540744B2 (en) Flexible control in resizing of visual displays
JP6961802B2 (ja) 文字画像処理方法、装置、機器及び記憶媒体
JP5538435B2 (ja) 画像特徴抽出方法及びシステム
EP3618003A1 (en) Method and apparatus for generating synthetic picture
US20120324332A1 (en) Using Gestures to Generate Code, Including for Text Flow
US20130215045A1 (en) Stroke display method of handwriting input and electronic device
KR20180056316A (ko) 타일-기반 렌더링을 수행하는 방법 및 장치
CN115330986B (zh) 一种分块渲染模式图形处理方法及系统
US8881002B2 (en) Trial based multi-column balancing
US10403040B2 (en) Vector graphics rendering techniques
US11055526B2 (en) Method, system and apparatus for processing a page of a document
WO2020192212A1 (zh) 图片处理方法、图集处理方法、计算机设备和存储介质
CN114241105A (zh) 界面渲染方法、装置、设备和计算机可读存储介质
JP7158602B2 (ja) 文字列表示処理方法並びにその、装置、端末及びコンピュータプログラム
CN112711729A (zh) 基于页面动画的渲染方法、装置、电子设备及存储介质
US10387997B2 (en) Information processing device, information processing method, and storage medium
US20120050337A1 (en) Two-dimensional object packing
US20180189251A1 (en) Automatic multi-lingual editing method for cartoon content
CN111782333B (zh) 游戏中的界面显示方法、装置、存储介质与终端设备
CN112583976B (zh) 图形码显示方法、设备及可读存储介质
CN117635792A (zh) 渲染方法和装置、电子设备和存储介质
CN116392810A (zh) 一种文本显示方法、装置、电子设备和可读存储介质
CN115660935A (zh) 一种分块渲染模式图形处理方法及系统
CN114912054A (zh) 虚拟元素排列的方法、装置、电子设备及存储介质
CN115857778A (zh) 页面生成方法和装置

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: 19920847

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2019920847

Country of ref document: EP

Effective date: 20210924