CN111223155B - Image data processing method, device, computer equipment and storage medium - Google Patents

Image data processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN111223155B
CN111223155B CN201911006758.5A CN201911006758A CN111223155B CN 111223155 B CN111223155 B CN 111223155B CN 201911006758 A CN201911006758 A CN 201911006758A CN 111223155 B CN111223155 B CN 111223155B
Authority
CN
China
Prior art keywords
attribute information
target
picture
initial
resolution
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201911006758.5A
Other languages
Chinese (zh)
Other versions
CN111223155A (en
Inventor
周伟
韩冲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dasou Vehicle Software Technology Co Ltd
Original Assignee
Zhejiang Dasou Vehicle Software Technology Co Ltd
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 Zhejiang Dasou Vehicle Software Technology Co Ltd filed Critical Zhejiang Dasou Vehicle Software Technology Co Ltd
Priority to CN201911006758.5A priority Critical patent/CN111223155B/en
Publication of CN111223155A publication Critical patent/CN111223155A/en
Application granted granted Critical
Publication of CN111223155B publication Critical patent/CN111223155B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • 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
    • 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/4053Scaling of whole images or parts thereof, e.g. expanding or contracting based on super-resolution, i.e. the output image resolution being higher than the sensor resolution

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Generation (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The application relates to an image data processing method, an image data processing device, a computer device and a storage medium. The method comprises the following steps: acquiring initial picture data, wherein the initial picture data is generated according to a preset format; analyzing the initial picture data according to an analysis rule corresponding to a preset format to obtain picture elements in the initial picture data and corresponding initial attribute information; the method comprises the steps of obtaining target resolution, adjusting at least one attribute information in initial attribute information according to the target resolution to obtain target attribute information corresponding to a picture element, wherein the target attribute information is attribute information corresponding to a drawing interface, and the drawing interface is used for obtaining a target picture according to the target attribute information and the picture element. By adopting the method, the picture generation efficiency can be improved.

Description

Image data processing method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to an image data processing method, an image data processing device, a computer device, and a storage medium.
Background
With the development of computer technology, there is an increasing demand for various forms of pictures. For example, a developer often needs to generate a picture from a design draft.
At present, the requirements for pictures are various, for example, the same poster pictures are used in different scenes, the corresponding requirements for size, color and the like are different, and at present, professional staff is required to redraw the pictures according to different requirements so as to meet the requirements, so that the picture generation efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an image data processing method, apparatus, computer device, and storage medium capable of improving the efficiency of picture generation, in order to solve the above-described problem of low picture generation efficiency.
An image data processing method, the method comprising: acquiring initial picture data, wherein the initial picture data is generated according to a preset format; analyzing the initial picture data according to an analysis rule corresponding to the preset format to obtain picture elements and corresponding initial attribute information in the initial picture data; obtaining target resolution, adjusting at least one attribute information in the initial attribute information according to the target resolution to obtain target attribute information corresponding to a picture element, wherein the target attribute information is attribute information corresponding to a drawing interface, and the drawing interface is used for obtaining a target picture according to the target attribute information and the picture element.
In some embodiments, the method further comprises: acquiring the corresponding relation between attribute information and a drawing interface in an operating system according to the category corresponding to the picture element; determining a corresponding target drawing interface according to the corresponding relation between the attribute information and the drawing interface; and drawing corresponding picture elements according to the target attribute information by using the target drawing interface to obtain a target picture.
In some embodiments, the acquiring initial picture data includes: acquiring initial picture data, wherein the initial picture data comprises element objects corresponding to picture elements, the element objects are generated according to the picture elements and corresponding initial attribute information, and the element objects comprise one or more key value pairs formed according to initial attribute identifiers and attribute values in the initial attribute information; the obtaining the corresponding relation between the attribute information and the drawing interface in the operating system according to the category corresponding to the picture element comprises the following steps: acquiring the corresponding relation between the attribute identifier and the drawing interface in the operating system according to the category corresponding to the element object; the determining the corresponding target drawing interface according to the corresponding relation between the attribute information and the drawing interface comprises the following steps: and taking keys in each key value pair as initial attribute identifiers, and obtaining a drawing interface corresponding to the initial attribute identifiers according to the corresponding relation between the attribute identifiers and the drawing interface to serve as a target drawing interface.
In some embodiments, the acquiring initial picture data includes: receiving a resolution adjustment request for adjusting the resolution of an initial picture, and responding to the resolution adjustment request to acquire initial picture data corresponding to the initial picture, wherein the resolution adjustment request carries the target resolution.
In some embodiments, the obtaining the target resolution, adjusting at least one attribute information in the initial attribute information according to the target resolution, and obtaining the target attribute information includes: determining first attribute information and second attribute information in the initial attribute information, wherein the first attribute information is attribute information related to resolution, and the second attribute information is attribute information unrelated to resolution; acquiring a target resolution, and adjusting the first attribute information according to the target resolution to obtain adjusted attribute information; and taking the adjusted attribute information and the second attribute information as target attribute information.
In some embodiments, the obtaining the target resolution, adjusting at least one attribute information in the initial attribute information according to the target resolution, and obtaining the target attribute information includes: obtaining a target resolution, and obtaining a target scaling factor according to the target resolution and the resolution corresponding to the initial picture; and scaling at least one attribute information in the initial attribute information according to the target scaling factor to obtain target attribute information.
In some embodiments, the method is performed by a software development kit between an application and an operating system, the software development kit comprising a data specification layer, a format parsing layer, and an interface calling layer; the data specification layer is used for defining a data specification corresponding to the data of the incoming software development kit; the format analysis layer is used for analyzing the initial picture data according to the data specification to obtain the category of the picture element and the initial attribute information; and the interface calling layer is used for calling the corresponding target drawing interface to draw the picture.
An image data processing apparatus, the apparatus comprising: the device comprises an initial picture data acquisition module, a display module and a display module, wherein the initial picture data acquisition module is used for acquiring initial picture data, and the initial picture data are data generated according to a preset format; the picture element and attribute information obtaining module is used for analyzing the initial picture data according to the analysis rule corresponding to the preset format to obtain picture elements and corresponding initial attribute information in the initial picture data; the target attribute information obtaining module is used for obtaining target resolution, adjusting at least one attribute information in the initial attribute information according to the target resolution to obtain target attribute information corresponding to a picture element, wherein the target attribute information is attribute information corresponding to a drawing interface, and the drawing interface is used for obtaining a target picture according to the target attribute information and the picture element.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the image data processing method described above when the computer program is executed.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described image data processing method.
According to the image data processing method, the image data processing device, the computer equipment and the storage medium, the initial picture data generated according to the preset format are obtained, the picture elements in the initial picture data and the corresponding initial attribute information are obtained by analyzing the initial picture data according to the preset format, the initial attribute information is adjusted according to the obtained target resolution, the target attribute information is obtained, the corresponding drawing interface is called according to the target attribute information, and the target picture can be obtained. Therefore, the resolution adjustment of the initial picture data is realized, the picture data with the target resolution is obtained, the picture meeting the target resolution is further obtained, and the flexibility of picture generation is improved. And because the target attribute information is the attribute information corresponding to the drawing interface, the corresponding drawing interface is automatically called for drawing, a target picture is obtained, and the generation efficiency of the picture is improved.
Drawings
FIG. 1 is an application scenario diagram of an image data processing method in some embodiments;
FIG. 2 is a flow chart of an image data processing method according to some embodiments;
FIG. 3 is a flow chart of an image data processing method according to some embodiments;
FIG. 4 is a flow chart of an image data processing method according to some embodiments;
FIG. 5 is a flow chart of an image data processing method according to some embodiments;
FIG. 6 is a block diagram of an image data processing device in some embodiments;
FIG. 7 is an internal block diagram of a computer device in some embodiments.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The image data processing method provided by the application can be applied to an application environment shown in fig. 1. Wherein the application 102, the software development kit (Software Development Kit, SDK) 104, and the operating system 106 may reside on the same computer device, such as the same terminal, which may be, but is not limited to, various personal computers, notebook computers, and tablet computers. Data communication may be provided between the application 102 and the software development kit 104, and data communication may be provided between the software development kit 104 and the operating system 106. The application 102 may be any application program capable of using the software development kit 104, where the software development kit 104 is a software development kit capable of performing image data processing, and the operating system 106 may be an Android (Android) system or an IOS (iPhone Operation System, an operating system corresponding to a apple phone) system, but may also be other types of systems, and the types of the operating systems are not limited herein. When the operating system 106 is an android system, the application 102 and the software development kit 104 are programs corresponding to the android system, and when the operating system 106 is an IOS system, the application 102 and the software development kit 104 are programs corresponding to the IOS system.
Specifically, the application 102 may send a resolution adjustment request for performing resolution adjustment on the initial picture to the software development kit 104, where the resolution adjustment request may carry the target resolution; the software development kit 104 may respond to the resolution adjustment request, obtain initial picture data, where the initial picture data includes picture elements and corresponding initial attribute information, obtain a target resolution carried in the resolution adjustment request, and adjust the initial attribute information according to the target resolution to obtain target attribute data; the software development kit 104 may obtain the corresponding relationship between the attribute information and the drawing interface in the operating system 106 according to the category of the picture element, determine the target drawing interface corresponding to the target attribute information according to the corresponding relationship between the attribute information and the drawing interface, and draw the corresponding picture element according to the target attribute information by using the target drawing interface to obtain the target picture.
It will be appreciated that the image data processing method proposed by the present application may also be performed by a picture processing program.
In some embodiments, as shown in fig. 2, an image data processing method is provided, and the method is applied to the software development kit 104 in fig. 1 for illustration, and includes the following steps:
S202, acquiring initial picture data, wherein the initial picture data is generated according to a preset format.
Specifically, the picture data is data related to a picture, and the preset format is a preset data format. The initial picture data may be picture data corresponding to a known picture, for example, may be a design draft, a designer may design a corresponding design draft by using a professional picture design tool according to a design requirement, and a user may obtain the picture data corresponding to the design draft through the picture design tool. The user can also input the picture data on the corresponding interface according to the requirement, and the terminal can receive the picture data input by the user as initial picture data.
In some embodiments, the preset format may be a particular data specification. The initial picture data may be generated by using picture data corresponding to the initial picture according to a specific data specification. The specific data specification may be a preset data specification. The software development kit may specify a specification of the incoming picture data for indicating that the picture data of the incoming software development kit needs to meet, e.g., the software development kit may specify a data specification a and specify that the picture data of the incoming software development kit should conform to the data specification a. The specific data specification may also be used to indicate the representation format of the individual picture elements, which may be JSON (JavaScript Object Notation, JS object profile) format or XML (Extensible Markup Language ) format, for example. Among them, JSON is a lightweight data exchange format. It stores and presents data in a text format that is completely independent of the programming language, based on a subset of ECMAScript (js specification formulated by the european computer institute). XML is a markup language. The mark means an information symbol which can be understood by a computer, and by such mark, articles containing various information and the like can be processed between computers. The software development kit may obtain and process initial picture data that meets a particular data specification.
S204, analyzing the initial picture data according to an analysis rule corresponding to a preset format to obtain picture elements in the initial picture data and corresponding initial attribute information.
Specifically, the initial picture data may include a picture element and corresponding initial attribute information. Picture elements refer to elements in a picture, each picture element representing a component of the picture, and the picture elements are of different kinds, such as text elements, picture elements, background elements, and the like. The attributes may include public attributes, which may include location attributes, width attributes, and height attributes, and private attributes, which may be attributes specific to a picture element, such as text attributes of a text element. The attribute information refers to related information of an attribute corresponding to the picture element, may be an attribute value corresponding to the attribute, and may include at least one of a numerical value corresponding to the width attribute, a numerical value corresponding to the height attribute, a text content of the text attribute, and a coordinate value corresponding to the coordinate attribute, for example. The initial attribute information refers to attribute information corresponding to a picture element in the initial picture data. The software development kit can analyze the initial picture data according to an analysis mode corresponding to a preset format to obtain picture elements in the initial picture data and corresponding initial attribute information. For example, assuming that the preset format of the initial picture data is JSON format, the software development kit analyzes the initial picture data according to the manner of analyzing the JSON data, so as to obtain picture elements in the initial picture data and corresponding initial attribute information.
S206, obtaining target resolution, adjusting at least one attribute information in the initial attribute information according to the target resolution to obtain target attribute information corresponding to the picture element, wherein the target attribute information is attribute information corresponding to a drawing interface, and the drawing interface is used for obtaining a target picture according to the target attribute information and the picture element.
Specifically, the target resolution is a desired resolution, and the target resolution may be a resolution specified by a user. The resolution may include a horizontal pixel count and a vertical pixel count. The target attribute information refers to attribute information obtained by adjusting the initial attribute information according to the target resolution. The initial attribute information may include a plurality of attribute information, and may include, for example, one or more of position information, width information, height information, and color information, wherein the position information, the width information, the height information are related to resolution, and the color information is not related to resolution. Therefore, when the initial attribute information is adjusted according to the target resolution, one or more attribute information related to the resolution in the initial attribute information can be adjusted to adapt to the target resolution, so that the target attribute information is obtained.
In some embodiments, at least one attribute information in the initial attribute information may be adjusted according to a size relationship of the target resolution and the resolution corresponding to the initial picture, for example, for a text element, a coordinate attribute of the text may be adjusted. For example, assuming that the resolution of the initial picture is 800×800, the target resolution is 1600×1600, and the position coordinates of the text are (2, 2), the adjusted coordinates are (4, 4).
In some embodiments, the application may send a resolution adjustment request carrying the target resolution to the software development kit, from which the software development kit may obtain the target resolution.
In some embodiments, the software development kit may call a drawing interface corresponding to each target attribute information, transfer each target attribute information into a corresponding drawing interface, draw a corresponding picture element, and obtain a view (view) corresponding to each picture element. The software development kit can generate a target picture according to the obtained views corresponding to the picture elements. Wherein the view may be drawn in memory.
In the image data processing method, the initial picture data generated according to the preset format is obtained, the initial picture data is analyzed according to the preset format to obtain the picture elements in the initial picture data and the corresponding initial attribute information, the initial attribute information is adjusted according to the obtained target resolution to obtain the target attribute information, the target attribute information is the attribute information corresponding to the drawing interface, and the corresponding drawing interface is called according to the target attribute information to obtain the target picture. Therefore, the resolution adjustment of the initial picture data is realized, the picture data with the target resolution is obtained, the picture meeting the target resolution is further obtained, and the flexibility of picture generation is improved. And because the target attribute information is the attribute information corresponding to the drawing interface, the corresponding drawing interface is automatically called for drawing, a target picture is obtained, and the generation efficiency of the picture is improved.
Currently, when a picture is to be acquired, screenshot processing can be performed, and finally, the picture is generated and stored. For the pictures taken by the screen capturing, the resolution of the screen capturing device (such as a mobile phone) is limited. If the user wants to use a picture of a larger size or browse the picture on a higher resolution device, the picture is directly enlarged, resulting in blurring of the picture information and affecting the use effect. By adopting the scheme of the embodiment of the application, the picture information can be obtained according to the actual requirement, the resolution of the picture is adjusted, and the picture with the specified resolution is obtained, so that the picture distortion caused by directly amplifying the picture is avoided.
In some embodiments, as shown in fig. 3, the method further comprises:
s302, obtaining the corresponding relation between the attribute information and the drawing interface in the operating system according to the category corresponding to the picture element.
Specifically, the category of the picture element may be text, graphics, or background. The operating system may be an Android system or an IOS system. The drawing interface refers to an interface for drawing a view corresponding to an operating system. The corresponding rendering interfaces are different for different operating systems. For example, the drawing interface corresponding to the Android system is different from the drawing interface corresponding to the IOS. The differences in the drawing interfaces may include at least one of differences in development languages, names, and methods corresponding to the drawing interfaces. Wherein the method may be a function. For example, the drawing interface corresponding to the IOS is written in the object-c language, and the drawing interface corresponding to the Android is written in the Java language. For example, when the text line spacing is set, the method corresponding to the drawing interface of the IOS system is different from the method corresponding to the drawing interface of the Android system.
In some embodiments, the types of the picture elements are different, the corresponding drawing interfaces may be different, and the software development kit may obtain the types of the picture elements, and obtain the drawing interfaces corresponding to the picture elements in the corresponding operating system according to the types of the picture elements, so as to obtain the drawing interfaces corresponding to the attribute information corresponding to the picture elements, so that efficiency of obtaining the drawing interfaces is improved. For example, the View Manager (View Manager) corresponding to the operating system may be used to manage the corresponding View object, for example, the View Manager of the picture may be used to manage the View object of the picture, and the View Manager may be used to manage the setting of the size, the link, the rounded corner, and other attributes of the picture. The view manager (ViewManager) may define element categories and the correspondence of attributes to the invoked drawing interface. The corresponding relation can be added dynamically, and a user or a developer of the software development kit can add the corresponding relation between element categories and the drawing interfaces according to requirements, for example, the corresponding relation between list elements and the drawing interfaces can be added. Wherein View is a View object in the program used for drawing, through which different manifestations of the View can be set.
In some embodiments, the correspondence between the attribute information and the drawing interface in each operating system may be integrated, so when the initial picture data is received, the operating system where the current device is located may be determined, and the correspondence between the attribute information and the drawing interface in the operating system where the current device is located may be obtained.
S304, determining a corresponding target drawing interface according to the corresponding relation between the attribute information and the drawing interface.
Specifically, the target drawing interface refers to a drawing interface corresponding to target attribute information. In general, the drawing interface corresponding to the target attribute information is consistent with the drawing interface corresponding to the initial attribute information, so the software development kit can determine the drawing interface corresponding to the initial attribute information as the target drawing interface according to the corresponding relationship between the attribute information corresponding to the picture element and the drawing interface.
S306, drawing corresponding picture elements according to the target attribute information by using a target drawing interface to obtain a target picture.
Specifically, the target picture is a picture generated after drawing a corresponding picture element according to the target attribute information. After the target drawing interfaces corresponding to the target attribute information are determined, the software development kit can transmit the target attribute information to the corresponding target drawing interfaces, so that the corresponding target drawing interfaces receive the target attribute information and draw the picture elements according to the target attribute information to obtain views of the corresponding picture elements. The software development kit can generate a target picture according to the obtained views corresponding to the picture elements. Wherein the view may be drawn in memory.
In some embodiments, the software development kit may adjust the initial attribute information according to the picture modification requirement to obtain the target attribute information. For example, the initial attribute information may be adjusted according to the specified resolution to obtain target attribute information, and the target attribute information is transferred into the target drawing interface, so that the target drawing interface receives the target attribute information, draws the picture element according to the target attribute information to obtain a view corresponding to the picture element, and the software development kit may generate a corresponding target picture according to the obtained view.
In some embodiments, the software development kit may adjust a portion of the attribute information of the initial attribute information according to the specified resolution to obtain the target attribute information. Specifically, the attribute information may include attribute information related to resolution and attribute information unrelated to resolution, and the software development kit may adjust attribute information related to resolution in the initial attribute information according to the specified resolution, and does not process attribute information unrelated to resolution in the initial attribute information, so as to obtain target attribute information, where the target attribute information includes adjusted attribute information corresponding to the initial attribute information and attribute information not adjusted.
In some embodiments, the software development kit may obtain the specified resolution from the application. Specifically, the application program may send a resolution adjustment request for performing resolution adjustment on the known picture to the software development kit, where the resolution adjustment request may carry a specified resolution. The software development tool may include retrieving the specified resolution from the resolution adjustment request. The specified resolution may be user-entered, for example, when the user needs to adjust the resolution of the picture, a target resolution may be entered on the terminal, which receives the target resolution.
In the image data processing method, the corresponding relation between the attribute information and the drawing interface in the operating system is obtained according to the category of the picture element, the corresponding target drawing interface is determined according to the corresponding relation between the attribute information and the drawing interface, and the corresponding picture element is drawn according to the initial attribute information by utilizing the target drawing interface, so that the target picture is obtained. Therefore, the picture can be automatically drawn according to the initial picture data, and the efficiency is high. And the corresponding relation between attribute information and the drawing interfaces in the operating system can be obtained according to the types of the picture elements, so that the corresponding drawing interfaces are obtained, and the flexibility of picture generation is improved.
In some embodiments, step S202 obtains initial picture data, including: the method comprises the steps of obtaining initial picture data, wherein the initial picture data comprises element objects corresponding to picture elements, the element objects are generated according to initial attribute information and the corresponding picture elements, and the element objects comprise one or more key value pairs formed according to initial attribute identifiers and attribute values in the initial attribute information.
Specifically, the initial picture data may include an element object corresponding to a picture element, where the element object may be generated according to the initial attribute information and the corresponding picture element, and one picture element may correspond to one element object. The element object comprises one or more key value pairs formed according to the initial attribute identification and the attribute value in the initial attribute information. The initial attribute identification is used to identify the attribute. The attribute value refers to a value to which the attribute corresponds. For example, a text element may correspond to a width attribute value, a height attribute value, a color attribute value, and the like, and for an element object to which the text element corresponds, the attribute identifications may include an attribute identification for identifying the width attribute value, an attribute identification for identifying the height attribute value, and an attribute identification for identifying the color attribute value. The key-value pair includes a key (key) and a value (value), where the key is used as an index. The initial attribute identifier is a key and the attribute value is a value in a key value pair formed by the initial attribute identifier and the attribute value.
For example, an element object corresponding to a Chinese element in a design script may be represented as { "coredinateSystemTen": "LeftTop", "elementType": "Text", "height":10, "width" 60, "horizontal margin" 74, "vertical margin" 207, "printProps" 88, "textContent" ABC "," textColor "88" Text F8FA "," granularity "center", "textWeight" wherein "codedinateStyle" is represented by the upper left coordinate system description, "elementary type" is represented by the Text element, "height" 10, "width" 60 is represented by the width of the relative design script, "horizontal margin" 74, "vertical margin" 207 "represents the upper left corner of the element in the upper left coordinate system, the Text program" 88 "is represented by the Text element, such as" Text size "88" is represented by the size "Text" is represented by the Text "color" 7 "color" is represented by the upper left coordinate system, and "Text color" Text "88" is represented by the Text color "RGB" is represented by the Text color "Text" 7 "Text color" is represented by the upper left corner "Text" color "FA" Text "" Text. Wherein the content around the colon constitutes a key-value pair, e.g. "height" 10 "is a key-value pair, where" height "is a key and" 10 "is a value.
Step S302 is to obtain the corresponding relationship between the attribute information and the drawing interface in the operating system according to the category corresponding to the picture element, including: and acquiring the corresponding relation between the attribute identifier and the drawing interface in the operating system according to the category corresponding to the element object.
Specifically, since the element object is generated according to the initial attribute information and the corresponding picture element, the category corresponding to the element object refers to the category of the picture element.
In some embodiments, a key-value pair consisting of a category identification and a corresponding attribute value may be included in the element object. Wherein the category identification is used to identify the category of the picture element. For example, for an element object corresponding to a text element, a category identification for identifying the text element and a key value pair consisting of the corresponding text category may be included. The software development kit can acquire category identifiers from the element objects, acquire corresponding attribute values, namely element categories, according to the category identifiers, and acquire the corresponding relations between the attribute identifiers in the element objects corresponding to the picture elements and the drawing interfaces in the operating system according to the acquired element categories.
Step S304 is to determine a corresponding target drawing interface according to the corresponding relationship between the attribute information and the drawing interface, including: and taking keys in each key value pair as initial attribute identifiers, and obtaining corresponding drawing interfaces according to the corresponding relation between the attribute identifiers and the drawing interfaces to serve as target drawing interfaces.
Specifically, the software development kit may obtain each key value pair in the element object corresponding to the picture element, take the key in each key value pair as an initial attribute identifier, and obtain the drawing interface corresponding to the initial attribute identifier according to the corresponding relationship between the attribute identifier and the drawing interface, and use the drawing interface as the target drawing interface corresponding to the target attribute information.
In the above embodiment, the obtained initial picture data includes an element object corresponding to the picture element, and the element object is generated according to the picture element and the corresponding initial attribute information, where the element object includes one or more key value pairs formed according to the initial attribute identifier and the attribute value in the initial attribute information. Therefore, the acquired picture data has a uniform data format, when a picture needs to be generated, the software development kit can be called by generating the picture data according to the data corresponding to the picture and the uniform data format, so that the picture is generated without processing a complicated picture drawing process, and the picture generation efficiency is improved.
In some embodiments, step S202 of acquiring the initial picture data includes: receiving a resolution adjustment request for adjusting the resolution of the initial picture, and responding to the resolution adjustment request to acquire initial picture data corresponding to the initial picture, wherein the resolution adjustment request carries target resolution.
Specifically, the initial picture is a generated picture, for example, when one or more pictures are displayed on the terminal, and when the user needs to zoom in on the picture, the user may request to adjust the resolution of the picture by clicking a "picture zoom in" button. The resolution adjustment request is used for requesting adjustment of the resolution corresponding to the initial picture. The target resolution is a desired resolution, which may be a user-specified resolution. The resolution may include a horizontal pixel count and a vertical pixel count.
In some embodiments, the resolution adjustment request may further carry initial picture data corresponding to the initial picture, for example, the application program may send a resolution adjustment request carrying the target resolution and the initial picture data to a software development kit, and the software development kit receives the resolution adjustment request and obtains the target resolution and the initial picture data in the resolution adjustment request.
In some embodiments, the resolution adjustment request may further carry an initial picture identifier corresponding to the initial picture, and the software development kit may obtain the initial picture identifier in the resolution adjustment request, and obtain initial picture data corresponding to the initial picture according to the initial picture identifier.
In some embodiments, the resolution adjustment request may be sent by an application. Specifically, when the resolution needs to be adjusted, for example, when receiving a related operation of adjusting the resolution by the user, the application program may call a corresponding interface of the software development kit, send a resolution adjustment request carrying the target resolution to the software development kit, and transfer the target resolution into the corresponding interface.
In the above embodiment, by receiving a resolution adjustment request carrying a target resolution for adjusting the resolution of the initial picture, the initial attribute information may be adjusted according to the target resolution to obtain the target attribute information, and the target drawing interface is utilized to draw the corresponding picture data according to the obtained target attribute information, where the obtained target picture is identical to the element of the picture corresponding to the initial attribute information, so as to implement the change of the resolution of the picture corresponding to the initial attribute information. Therefore, the resolution of the picture can be adjusted according to actual requirements, and the picture with the specified resolution is obtained, so that the picture is prevented from being directly amplified, and the picture is prevented from being distorted.
In some embodiments, as shown in fig. 4, step S206 is to obtain a target resolution, and adjust at least one attribute information in the initial attribute information according to the target resolution, where obtaining the target attribute information includes:
S402, determining first attribute information and second attribute information in the initial attribute information, wherein the first attribute information is attribute information related to resolution, and the second attribute information is attribute information unrelated to resolution.
Specifically, the initial attribute information may include attribute information related to resolution, and may further include attribute information unrelated to resolution. The attribute information related to the resolution may be coordinate information, length information, width information, or the like, and the attribute information unrelated to the resolution may be color information, font type, or the like. Accordingly, attribute information related to resolution in the initial attribute information can be identified as first attribute information; to identify attribute information, which is independent of resolution, in the initial attribute information as second attribute information.
In some embodiments, the software development kit may be preset with a resolution-related attribute, and the resolution-related attribute information may be determined according to the resolution-related attribute. The software development kit can compare the corresponding attribute with the specified attribute related to the resolution according to the attribute corresponding to each attribute information in the initial attribute information, determine whether the corresponding attribute is related to the resolution, and further determine whether the attribute information corresponding to the attribute is the attribute information related to the resolution. Thereby separating each attribute information corresponding to the initial attribute information into attribute information related to resolution and attribute information unrelated to resolution.
S404, obtaining target resolution, and adjusting the first attribute information according to the target resolution to obtain the adjusted attribute information.
Specifically, the first attribute information refers to attribute information related to resolution, and the software development kit can adjust the first attribute information according to the target resolution to obtain the adjusted attribute information. For example, the software development kit may adjust the value corresponding to the first attribute information according to the magnitude relation between the target resolution and the value corresponding to the first attribute information, for example, may zoom in or zoom out the value corresponding to the first attribute information.
And S406, taking the adjusted attribute information and the second attribute information as target attribute information.
Specifically, the second attribute information refers to attribute information that is independent of resolution, that is, data information that does not need to be adjusted according to the target resolution. The adjusted attribute information and the second attribute information may be regarded as target attribute information, i.e., the target attribute information may include the attribute information adjusted according to the target resolution and the second attribute information.
In the above embodiment, the adjustment of the attribute information related to the resolution in the target attribute information according to the target resolution may implement the enlargement or reduction of the picture data before the generation of the picture, so that the picture data may be changed according to the actual requirement, and thus the distortion of the generated picture after the enlargement may be avoided.
In some embodiments, as shown in fig. 5, step S206 is to obtain a target resolution, adjust at least one attribute information in the initial attribute information according to the target resolution, and obtain target attribute information, including:
s502, obtaining target resolution, and obtaining a target scaling factor according to the target resolution and the resolution corresponding to the initial picture.
Specifically, the target scaling factor may be obtained according to the number of horizontal pixels and the number of vertical pixels respectively corresponding to the target resolution and the resolution corresponding to the initial picture. The horizontal scaling factor can be obtained by calculating the ratio of the number of horizontal pixels corresponding to the target resolution to the number of horizontal pixels of the resolution corresponding to the initial picture; the vertical scaling factor may be obtained by calculating the ratio of the number of vertical pixels corresponding to the target resolution to the number of vertical pixels of the resolution corresponding to the initial picture. The smaller of the horizontal scaling factor and the vertical scaling factor, which corresponds to the value, may be taken as the target scaling factor. For example, if the target resolution is 200×200 and the resolution corresponding to the initial picture is 100×100, the horizontal scaling factor and the vertical scaling factor are both 2, and thus the target scaling factor is 2; if the target resolution is 150×200 and the resolution corresponding to the initial picture is 100×100, the horizontal scaling factor is 1.5 and the vertical scaling factor is 2, and thus the target scaling factor may be 1.5.
S504, scaling at least one attribute information in the initial attribute information according to the target scaling factor to obtain target attribute information.
Specifically, zooming refers to zooming in or out. The software development kit may scale the resolution-related attribute information in the initial attribute information according to a target scaling factor. When the target scaling factor is greater than 1, the software development kit can correspondingly amplify attribute information related to resolution in the initial attribute information according to the target scaling factor; when the target scaling factor is smaller than 1, the software development kit can correspondingly reduce the attribute information related to the resolution in the initial attribute information according to the target scaling factor.
In the above embodiment, the target scaling factor is obtained by the target resolution and the resolution corresponding to the initial picture, and at least one attribute information in the initial attribute information is scaled by the target scaling factor, so that the picture data can be changed according to the actual requirement, and distortion of the generated picture after amplification can be avoided. When the attribute information is scaled by selecting a smaller scaling factor from the vertical scaling factor and the horizontal scaling factor as the target scaling factor, the attribute information can be scaled in the same scale by the scaling factor, so that the deformation of the picture generated according to the target attribute information is avoided.
In some embodiments, the image data processing method is performed by a software development kit between an application and an operating system, the software development kit including a data specification layer, a format parsing layer, and an interface calling layer.
Specifically, the data specification layer is used for defining a data specification corresponding to the data of the incoming software development kit; the format analysis layer is used for analyzing the initial picture data according to the data specification to obtain the category of the picture element and the initial attribute information; and the interface calling layer is used for calling the corresponding target drawing interface to draw the picture.
In some embodiments, after the software development kit acquires the initial picture data, the data format of the initial picture data is checked, and if the data format of the obtained picture data does not conform to the data format defined by the data specification layer, information about the error of the picture data format can be returned to the application program of the incoming picture data.
In some embodiments, the format parsing layer may parse the initial picture data according to the data specification, obtain a category of the picture element and initial attribute information, find a corresponding drawing interface according to the category of the picture element, and transfer the initial attribute information to a view corresponding to the drawing picture element in the corresponding view.
In some embodiments, the same picture data may be obtained through format parsing layers corresponding to different systems. For example, assuming that the font size of the text element contained in the picture data meeting the data specification obtained by the format parsing layer is 10, the middle layer calls a system interface of the set font size corresponding to the android system in the android system, and calls a system interface of the set font corresponding to the IOS system in the IOS. The system interfaces of different system drawing font sizes are inconsistent, but the format parsing layer can adapt to the interface differences of different systems, so that the same piece of data can generate views with the same font size. Likewise, other contents, such as text elements, coordinates, picture links or picture fillets of picture elements can be drawn by using corresponding drawing interfaces corresponding to the corresponding systems.
In some embodiments, the application program may send the specified resolution to the software development tool, and after the format parsing layer obtains the category of the picture element and the initial attribute information, the format parsing layer may adjust the initial attribute information according to the specified resolution, and call the drawing interface to draw according to the adjusted attribute information, so as to obtain a picture with the specified resolution.
In the above embodiment, the software development kit includes a data specification layer, a format analysis layer and an interface calling layer, where the software development kit defines a data specification through the data specification layer, so that the picture data input into the software development kit accords with a specific data format, the format analysis layer can analyze the obtained picture data according to the data specification defined by the data specification layer to obtain the category and attribute information corresponding to the picture element, and the format analysis layer can automatically call the corresponding drawing interface according to the category of the obtained element and transmit the corresponding attribute information to make the drawing interface draw the corresponding view. Therefore, when the picture needs to be generated, the software development kit can be called by generating the picture data according to the data specification by the data corresponding to the picture, so that the picture is generated without processing a complicated picture drawing process, and the picture generation efficiency is improved.
In some embodiments, acquiring initial picture data in step S202 includes: receiving initial picture data sent by an application program, wherein the initial picture data is generated according to a data specification defined by a data specification layer; the method further comprises the steps of: and returning the target picture to the application program.
Specifically, when the initial picture data sent by the application program accords with the data specification defined by the data specification layer of the software development kit, the software development kit can analyze the initial picture data through the format analysis layer, call the corresponding drawing interface to draw and obtain the view of the picture corresponding to the initial picture data, and the software development kit can generate a target picture through the obtained view of the picture and return the target picture to the application program. Specifically, the software development kit may return the target picture to the application program in a callback manner.
In some embodiments, the target picture may be a picture binary stream, a picture local file, or a network picture. The pictures exist in the memory in the form of binary stream in the running process of the program, and the picture binary stream is used for displaying the pictures in the running process of the program. The picture local file refers to a file stored in a computer disk, and may be, for example, a picture in PNG (Portable Network Graphics ) format. The web picture refers to a picture stored in a server and linked with a URL, which may be "https:// www.xxx.com/bbbccc. The PNG is a lossless compression bitmap pattern format, and supports the characteristics of index, gray scale, RGB three color schemes, alpha (transparent) channels and the like. PNG is developed to improve and replace GIF as a format suitable for network transmission without patent approval, and is thus widely used in the internet and other fields.
In the above embodiment, the software development kit returns the target picture to the application program, so that the application program obtains the target picture according to the picture data, and the application program can obtain the required picture without doing more operations, thereby improving the development efficiency of the application program.
It should be understood that, although the steps in the flowcharts of the above embodiments are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts of the above embodiments may include a plurality of sub-steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of execution of the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with at least some of the other steps or sub-steps of other steps.
In some embodiments, as shown in fig. 6, there is provided an image data processing apparatus including: the initial picture data obtaining module 602 is configured to obtain initial picture data, where the initial picture data is data generated according to a preset format. The picture element and attribute information obtaining module 604 is configured to parse the initial picture data according to a parsing rule corresponding to a preset format, so as to obtain a picture element and corresponding initial attribute information in the initial picture data. The target attribute information obtaining module 606 is configured to obtain a target resolution, adjust at least one attribute information in the initial attribute information according to the target resolution, obtain target attribute information corresponding to a picture element, where the target attribute information is attribute information corresponding to a drawing interface, and the drawing interface is configured to obtain a target picture according to the target attribute information and the picture element.
In some embodiments, the apparatus further comprises: and the corresponding relation acquisition module is used for acquiring the corresponding relation between the attribute information and the drawing interface in the operating system according to the category corresponding to the picture element. And the target drawing interface determining module is used for determining a corresponding target drawing interface according to the corresponding relation between the attribute information and the drawing interface. And the target picture obtaining module is used for drawing corresponding picture elements according to the target attribute information by utilizing the target drawing interface to obtain a target picture.
In some embodiments, the initial picture data obtaining module 602 is further configured to obtain initial picture data, where the initial picture data includes an element object corresponding to a picture element, the element object is generated according to the picture element and corresponding initial attribute information, and the element object includes one or more key value pairs that are formed according to an initial attribute identifier and an attribute value in the initial attribute information. The corresponding relation acquisition module is also used for acquiring the corresponding relation between the attribute identifier and the drawing interface in the operating system according to the category corresponding to the element object. The target drawing interface determining module is further configured to use the keys in each key value pair as initial attribute identifiers, and obtain corresponding drawing interfaces according to the corresponding relationship between the attribute identifiers and the drawing interfaces, and use the corresponding drawing interfaces as target drawing interfaces.
In some embodiments, the initial picture data obtaining module 602 is further configured to receive a resolution adjustment request for adjusting a resolution of an initial picture, and obtain initial picture data corresponding to the initial picture in response to the resolution adjustment request, where the resolution adjustment request carries a target resolution.
In some embodiments, the target attribute information obtaining module 606 includes: and the attribute information determining unit is used for determining first attribute information and second attribute information in the initial attribute information, wherein the first attribute information is the attribute information related to the resolution, and the second attribute information is the attribute information unrelated to the resolution. The adjusted attribute information obtaining unit is used for obtaining the target resolution, adjusting the first attribute information according to the target resolution, and obtaining the adjusted attribute information. And the target attribute information acquisition unit is used for taking the adjusted attribute information and the second attribute information as target attribute information.
In some embodiments, the target attribute information obtaining module 606 is further configured to obtain a target resolution, and obtain a target scaling factor according to the target resolution and a resolution corresponding to the initial picture; and scaling at least one attribute information in the initial attribute information according to the target scaling factor to obtain target attribute information.
In some embodiments, the image data processing method is performed by a software development kit between an application and an operating system, the software development kit including a data specification layer, a format parsing layer, and an interface calling layer. The data specification layer is used for defining a data specification corresponding to the data of the incoming software development kit; the format analysis layer is used for analyzing the initial picture data according to the data specification to obtain the category of the picture element and the initial attribute information; and the interface calling layer is used for calling the corresponding target drawing interface to draw the picture. The image data processing device may be integrated in a software development kit.
In some embodiments, the initial picture data obtaining module 602 is further configured to receive initial picture data sent by an application program, where the initial picture data is generated according to a data specification defined by a data specification layer; the device is also used for returning the target picture to the application program.
For specific limitations of the image data processing apparatus, reference may be made to the above limitations of the image data processing method, and no further description is given here. The respective modules in the above-described image data processing apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In some embodiments, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an image data processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In some embodiments, a computer device is provided comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the image data processing method described above when the computer program is executed.
In some embodiments, a computer readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the above-described image data processing method.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. An image data processing method performed by a software development kit between an application program and an operating system, the method comprising:
acquiring initial picture data, wherein the initial picture data is generated by picture data corresponding to an initial picture according to a preset data specification; the initial picture data meets preset data specifications; the preset data specification is a specification defined by the software development kit and required to be met by the software development kit;
Analyzing the initial picture data according to the data specification to obtain picture elements in the initial picture data and corresponding initial attribute information;
acquiring target resolution designated by a user, and adjusting at least one attribute information in the initial attribute information according to the target resolution to obtain target attribute information corresponding to a picture element, wherein the target attribute information is attribute information corresponding to a drawing interface, and the drawing interface is used for obtaining a target picture according to the target attribute information and the picture element;
acquiring the corresponding relation between attribute information and a drawing interface in an operating system according to the category corresponding to the picture element;
determining a target drawing interface corresponding to the target attribute information according to the corresponding relation between the attribute information and the drawing interface;
and drawing corresponding picture elements according to the target attribute information by using the target drawing interface to obtain a target picture.
2. The method of claim 1, wherein the acquiring initial picture data comprises:
acquiring initial picture data, wherein the initial picture data comprises element objects corresponding to picture elements, the element objects are generated according to the picture elements and corresponding initial attribute information, and the element objects comprise one or more key value pairs formed according to initial attribute identifiers and attribute values in the initial attribute information;
The obtaining the corresponding relation between the attribute information and the drawing interface in the operating system according to the category corresponding to the picture element comprises the following steps:
acquiring the corresponding relation between the attribute identifier and the drawing interface in the operating system according to the category corresponding to the element object;
the determining the target drawing interface corresponding to the target attribute information according to the corresponding relation between the attribute information and the drawing interface comprises the following steps:
and taking keys in each key value pair as initial attribute identifiers, and obtaining a drawing interface corresponding to the target attribute information according to the corresponding relation between the attribute identifiers and the drawing interface to serve as a target drawing interface.
3. The method of claim 1, wherein the acquiring initial picture data comprises:
receiving a resolution adjustment request for adjusting the resolution of an initial picture, and responding to the resolution adjustment request to acquire initial picture data corresponding to the initial picture, wherein the resolution adjustment request carries the target resolution.
4. The method according to claim 1, wherein the obtaining the target resolution specified by the user, adjusting at least one attribute information in the initial attribute information according to the target resolution, and obtaining the target attribute information corresponding to the picture element, includes:
Determining first attribute information and second attribute information in the initial attribute information, wherein the first attribute information is attribute information related to resolution, and the second attribute information is attribute information unrelated to resolution;
acquiring target resolution designated by a user, and adjusting the first attribute information according to the target resolution to obtain adjusted attribute information;
and taking the adjusted attribute information and the second attribute information as target attribute information.
5. The method according to claim 1, wherein the obtaining the target resolution specified by the user, adjusting at least one attribute information in the initial attribute information according to the target resolution, and obtaining the target attribute information corresponding to the picture element, includes:
acquiring target resolution designated by a user, and acquiring a target scaling factor according to the target resolution and the resolution corresponding to the initial picture;
and scaling at least one attribute information in the initial attribute information according to the target scaling factor to obtain target attribute information.
6. The method of claim 1, wherein the software development kit comprises a data specification layer, a format parsing layer, and an interface calling layer;
The data specification layer is used for defining a data specification corresponding to the data of the incoming software development kit;
the format analysis layer is used for analyzing the initial picture data according to the data specification to obtain the category of the picture element and the initial attribute information;
and the interface calling layer is used for calling the corresponding target drawing interface to draw the picture.
7. An image data processing apparatus, the image data processing apparatus belonging to a software development kit between an application program and an operating system, the apparatus comprising:
the initial picture data acquisition module is used for acquiring initial picture data, wherein the initial picture data is generated according to a preset data specification from picture data corresponding to an initial picture; the initial picture data meets preset data specifications; the preset data specification is a specification defined by the software development kit and required to be met by the software development kit;
the picture element and attribute information obtaining module is used for analyzing the initial picture data according to the data specification to obtain picture elements and corresponding initial attribute information in the initial picture data;
The target attribute information obtaining module is used for obtaining target resolution designated by a user, adjusting at least one attribute information in the initial attribute information according to the target resolution to obtain target attribute information corresponding to a picture element, wherein the target attribute information is attribute information corresponding to a drawing interface, and the drawing interface is used for obtaining a target picture according to the target attribute information and the picture element;
the device is also for: acquiring the corresponding relation between attribute information and a drawing interface in an operating system according to the category corresponding to the picture element; determining a target drawing interface corresponding to the target attribute information according to the corresponding relation between the attribute information and the drawing interface; and drawing corresponding picture elements according to the target attribute information by using the target drawing interface to obtain a target picture.
8. The apparatus of claim 7, wherein the initial picture data acquisition module is further configured to:
obtaining initial picture data, wherein the initial picture data comprises element objects corresponding to the picture elements, the element objects are generated according to the picture elements and corresponding initial attribute information, and the element objects comprise one or more key value pairs formed according to initial attribute identifiers and attribute values in the initial attribute information.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 6 when the computer program is executed by the processor.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN201911006758.5A 2019-10-22 2019-10-22 Image data processing method, device, computer equipment and storage medium Active CN111223155B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911006758.5A CN111223155B (en) 2019-10-22 2019-10-22 Image data processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911006758.5A CN111223155B (en) 2019-10-22 2019-10-22 Image data processing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111223155A CN111223155A (en) 2020-06-02
CN111223155B true CN111223155B (en) 2023-12-05

Family

ID=70805812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911006758.5A Active CN111223155B (en) 2019-10-22 2019-10-22 Image data processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111223155B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114115767A (en) * 2020-08-31 2022-03-01 西安诺瓦星云科技股份有限公司 Media playing method, device and system and computer readable storage medium
CN112712395A (en) * 2021-01-08 2021-04-27 北京有竹居网络技术有限公司 Display information generation method and device and electronic equipment
CN114756322B (en) * 2022-05-09 2024-02-20 北京航云物联信息技术有限公司 Picture processing method and device, computer equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270109A (en) * 2011-08-23 2011-12-07 上海网达软件有限公司 Self-converting method and system for user interfaces with different resolutions
CN103530079A (en) * 2013-09-30 2014-01-22 山西云途信息技术有限公司 Picture displaying method and device adaptive to mobile terminals of different resolution ratios
CN105959610A (en) * 2016-06-20 2016-09-21 乐视控股(北京)有限公司 Image display method and terminal device
CN107481697A (en) * 2015-07-03 2017-12-15 广东欧珀移动通信有限公司 A kind of image display method and user terminal and related media production
CN107786882A (en) * 2017-09-30 2018-03-09 青岛海信宽带多媒体技术有限公司 A kind of Webpage display process, device and set top box
CN109413434A (en) * 2018-11-08 2019-03-01 腾讯科技(深圳)有限公司 Image processing method, device, system, storage medium and computer equipment
CN109710827A (en) * 2018-12-13 2019-05-03 百度在线网络技术(北京)有限公司 Picture attribute management method, device, photo services end and business processing end
CN110032697A (en) * 2019-04-22 2019-07-19 苏州紫焰网络科技有限公司 Image processing method, device, computer equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120249550A1 (en) * 2009-04-18 2012-10-04 Lytro, Inc. Selective Transmission of Image Data Based on Device Attributes
CN103885755A (en) * 2012-12-19 2014-06-25 腾讯科技(深圳)有限公司 Method and device for implementing screen matching of owner-draw controls

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270109A (en) * 2011-08-23 2011-12-07 上海网达软件有限公司 Self-converting method and system for user interfaces with different resolutions
CN103530079A (en) * 2013-09-30 2014-01-22 山西云途信息技术有限公司 Picture displaying method and device adaptive to mobile terminals of different resolution ratios
CN107481697A (en) * 2015-07-03 2017-12-15 广东欧珀移动通信有限公司 A kind of image display method and user terminal and related media production
CN105959610A (en) * 2016-06-20 2016-09-21 乐视控股(北京)有限公司 Image display method and terminal device
CN107786882A (en) * 2017-09-30 2018-03-09 青岛海信宽带多媒体技术有限公司 A kind of Webpage display process, device and set top box
CN109413434A (en) * 2018-11-08 2019-03-01 腾讯科技(深圳)有限公司 Image processing method, device, system, storage medium and computer equipment
CN109710827A (en) * 2018-12-13 2019-05-03 百度在线网络技术(北京)有限公司 Picture attribute management method, device, photo services end and business processing end
CN110032697A (en) * 2019-04-22 2019-07-19 苏州紫焰网络科技有限公司 Image processing method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111223155A (en) 2020-06-02

Similar Documents

Publication Publication Date Title
CN111223155B (en) Image data processing method, device, computer equipment and storage medium
JP6457655B2 (en) Method, apparatus, program, and recording medium for creating graphical user interface
US20190179885A1 (en) Automated Generation of Web Forms Using Fillable Electronic Documents
CN114003160B (en) Data visual display method, device, computer equipment and storage medium
US20230334113A1 (en) Image processing method and apparatus, and computer readable storage medium
CN110751149A (en) Target object labeling method and device, computer equipment and storage medium
US20240119223A1 (en) Method, apparatus and electronic device for field merging
CN111596911A (en) Method and device for generating control, computer equipment and storage medium
JP7261732B2 (en) Method and apparatus for determining character color
CN110443772B (en) Picture processing method and device, computer equipment and storage medium
CN108984070B (en) Method, apparatus, electronic device and readable medium for thermodynamic diagram imaging
CN109213668B (en) Operation recording method and device and terminal
WO2022104999A1 (en) Handwriting graphics analysis method and apparatus, and electronic device
CN111597151A (en) File generation method and device, computer equipment and storage medium
CN108388463B (en) Icon processing method and device, computer equipment and storage medium
CN115756461A (en) Annotation template generation method, image identification method and device and electronic equipment
CN105739717A (en) Information input method and device
CN113096217B (en) Picture generation method and device, electronic equipment and storage medium
CN114489910A (en) Video conference data display method, device, equipment and medium
US11074392B2 (en) Information processing apparatus and non-transitory computer readable medium for switching between an attribute information mode and an image information mode
CN111968727A (en) Image data display method, device, computer equipment and storage medium
CN105975621B (en) Method and device for identifying search engine in browser page
CN113553123B (en) Data processing method, device, electronic equipment and storage medium
CN113112395B (en) Picture processing method, device and storage medium
CN112445394B (en) Screenshot method and screenshot device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant