Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Center labeling method of SVG file, terminal and computer readable storage medium

A file and storage technology, applied to terminals and computer-readable storage media, and the field of central labeling of SVG files, which can solve problems such as difficult calculation of the center position, inability to ensure that the fitting rectangle is placed inside the path, and excessively large borders, etc.

Pending Publication Date: 2022-03-22
西安纽扣软件科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For complex and irregular paths, there will be a problem that the border is too large and the center position is difficult to calculate
[0005] Secondly, the center position found by using the minimum border method may not be centered visually, and it cannot be guaranteed that the fitting rectangle is completely placed inside the path
[0006] Third, through manual labeling, the center position and fitting rectangle are more reasonable, but it takes a lot of time and cost to process

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Center labeling method of SVG file, terminal and computer readable storage medium
  • Center labeling method of SVG file, terminal and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment approach

[0037] It should be noted that the structures, proportions, sizes, etc. shown in this specification are only used to cooperate with the content disclosed in the specification for the understanding and reading of those familiar with this technology, and are not used to limit the conditions for the implementation of the present invention , any modification of structure, change of proportional relationship or adjustment of size shall still fall within the scope covered by the technical content disclosed in the present invention without affecting the effect and purpose of the present invention. .

[0038] At the same time, terms such as "upper", "lower", "left", "right", "middle" and "one" quoted in this specification are only for the convenience of description and are not used to limit this specification. The practicable scope of the invention and the change or adjustment of its relative relationship shall also be regarded as the practicable scope of the present invention without...

Embodiment 1

[0040] Such as figure 1 Shown, a kind of center marking method of SVG, described method comprises:

[0041] Rasterize the SVG file to obtain a binarized dataset;

[0042] Specifically: the SVG processing system 103 in the terminal reads the SVG file, and parses the SVG file based on the DOM (Document ObjectModel) structure, so as to obtain each element of the SVG file. For example, the elements include: path (path), And acquire the specific attribute information of the path, the specific attribute information of the path includes: (starting point, moving point, closing point). Traverse all paths, convert each path into binary data through rasterization operation, and the size of the rasterized image can be equal to the original SVG image, for example, the original image has a width of 500, The height is 500, and the width and height of the binarized data obtained after processing are also 500.

[0043] Since SVG is a vector image, binarized data with different resolutions c...

Embodiment 2

[0074] The magnitude of the SVG file is relatively large. In order to achieve the display effect, the path and structure of most SVG files are complex. Using the conventional minimum border (bounding box) or manual labeling methods, the final effect or processing time cannot meet the requirements.

[0075] SVG is a language defined in XML for describing two-dimensional vector and vector / raster graphics.

[0076] In view of the above problems, the present invention develops a terminal and a computer-readable storage medium, and provides a client (such as a Web front-end), so that only the corresponding SVG file needs to be submitted at the client, and the required configuration parameters can be adjusted by adjusting the corresponding configuration parameters. The SVG center label and the corresponding adaptation rectangle are processed, and the processed SVG file can be downloaded or stored.

[0077] The SVG processing annotation method provided in this embodiment can be used ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an SVG (scalable vector graphics) file center labeling method, a terminal and a computer readable storage medium, an SVG processing labeling system is developed, and a client (such as a Web use front end) is provided, so that corresponding SVG files only need to be submitted at the client, and corresponding configuration parameters are adjusted, so that the SVG files can be labeled at the same time. Therefore, required SVG center labeling and corresponding adaptive rectangle processing can be completed, and the processed SVG file can be downloaded or stored.

Description

technical field [0001] The invention belongs to the field of digital coloring, and in particular relates to a method for marking the center of an SVG file, a terminal and a computer-readable storage medium. Background technique [0002] In digital coloring games, use SVG (Scalable Vector Graphics) files as image carriers. For the path in the SVG image, it is necessary to find a suitable rectangle for placing the number. For each element of the SVG image, there are two requirements for the corresponding matching rectangle: the rectangle can be completely placed in the path without overlapping or exceeding; the size of the rectangle should be as large as possible to facilitate subsequent filling of digital text. [0003] The existing solution for filling the matrix is ​​to use the minimum bounding box of the SVG path element, find the center point of the path, and perform zoom processing; or process it by manual labeling. This solution has the following disadvantages. [00...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/172G06F16/16
CPCG06F16/172G06F16/16
Inventor 葛贤钰乔金梁陈勇
Owner 西安纽扣软件科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products