Repeated picture classification method and device

A picture classification and picture technology, applied in the field of visualization, can solve the problems of consuming memory resources, reducing the performance of the visual design platform, and lengthening the development cycle of visual products, so as to save memory resources, reduce memory resource consumption, and improve user experience. Effect

Inactive Publication Date: 2021-06-15
CHENGDU SEFON SOFTWARE CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a method and device for classifying repeated pictures, so as to solve the problem of consuming memory resourc

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

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0030] Example 1

[0031] A method for classifying repeated images is to compare the size of the decorative images, use psd-tools to export the decorative images and classify them; when designing a visualization page, the front-end engineer only needs to select a decorative image from a category to complete the entire visualization The configuration of this kind of decorative images in other places on the page does not need to load all the decorative images, and can also improve the user experience of the product; the specific process is as follows:

[0032] In the first step, artists design the required visual components (type, style), decorative pictures, etc. in the visual page according to the project requirements, and save them as psd files.

[0033] Step 2: use psd-tools to analyze the psd file in the first step, export all layers, and save all decorative pictures in png format.

[0034] Step 3: Set the color difference threshold (colorDifferentLimitPerPixel) and image ...

Example Embodiment

[0040] Example 2

[0041] A device for realizing repeated picture classification includes a memory: for storing executable instructions;

[0042] Processor: used to execute the executable instructions stored in the memory to implement a method for classifying repeated pictures.

Example Embodiment

[0043] Example 3

[0044] This embodiment is to realize some function codes of this scheme:

[0045] / **

[0046] * Whether the two pictures are similar. Calculates based on pixel values.

[0047] *

[0048] * @param image1

[0049] * @param image2

[0050] * @return is similar

[0051] * /

[0052] public boolean isSimilar(BufferedImage image1, BufferedImageimage2) {

[0053] if (image1 == null || image2 == null) {

[0054] return false;

[0055]}

[0056] int width1 = image1. getWidth();

[0057] int height1 = image1. getHeight();

[0058] int width2 = image2. getWidth();

[0059] int height2 = image2. getHeight();

[0060] / / consider the image to be different when the width or height exceeds the tolerance

[0061] if (Math.abs(width1 - width2) > this.sizeLimit || Math.abs(height1 - height2) > this.sizeLimit) {

[0062] return false;

[0063]}

[0064] ImageTool imageTool = new ImageTool(null);

[0065] int width = width1;

[0066] int height = height1;

[00...

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 a repeated picture classification method and device, and mainly solves the problems that in the prior art, an existing decoration picture loading method consumes memory resources and reduces the performance of a visual design platform; and the development period of a visual product is prolonged. According to the classification algorithm provided by the invention, the decoration pictures exported from the psd file can be classified, the similar decoration pictures are classified into one class and stored, and a front-end engineer only needs to select one picture from the class of decoration pictures so as to complete the configuration of the decoration picture in the visual page design; and according to the method and the device, memory resource consumption during visual page development of front-end engineers can be greatly reduced, and the decoration picture loading performance is improved, so that the user experience is improved.

Description

technical field [0001] The present invention relates to the field of visualization, in particular to a method and device for classifying repeated pictures. Background technique [0002] When making PSD files, in order to achieve the best visual effect of the visual component, the artist will move, zoom in, and zoom out on the decorative picture or layer, so that a decorative picture will be generated at different positions on the visual page due to image size changes. difference and generate multiple similar decoration pictures; when the front-end engineer loads the decoration pictures to configure the visual page, he needs to load all the decoration pictures into the visual page design platform, and the system will create the same type of decoration pictures, that is, one decoration picture Multiple similar decorative images are generated, assigned different image_ids, and consume memory resources at the same time. Loading a large number of decorative images will reduce the...

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
IPC IPC(8): G06K9/62G06K9/46
CPCG06V10/56G06F18/241
Inventor 韩威宏王纯斌徐祥张艳王国玉
Owner CHENGDU SEFON SOFTWARE CO LTD
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
Try Eureka
PatSnap group products