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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment 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 size difference thre...
Embodiment 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.
Embodiment 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;
[0067] if (width1 != wi...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com