Image Comparator Using DOM Context for Difference Labeling

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing image difference generators (IDGs) often highlight minor visual differences that are not significant in software development, leading to distractions and reduced coding efficiency, as they fail to distinguish between code-related and environmental or platform-induced changes.

Innovation Solution

An advanced image difference generator (AIDG) that utilizes context images based on dynamic object model (DOM) elements to identify and differentiate substantial difference areas (SDAs) from minor difference areas (MDAs), using threshold operations and color coding to highlight relevant code-related changes.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional image difference generators compare display outputs, then all visual differences are highlighted, but this includes minor environmental or platform-induced changes that are not related to code changes, leading to false positives and reduced developer efficiency

Engineering Contradiction:
Improvedifference detection accuracyVSAvoidfalse positives
Core Design Contradiction:
Measurement precisionVSObject-generated harmful factors

Solution Approach 1:

The patent segments differences into two categories: substantial difference areas (SDAs) related to code changes and minor difference areas (MDAs) related to environmental or platform changes. This segmentation is achieved by comparing context images generated from DOM elements and using threshold operations to distinguish between significant and insignificant differences, thereby reducing false positives while maintaining detection accuracy

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces context images as an intermediary representation that captures the structural layout of display outputs based on DOM elements. By comparing context images alongside pixel-level differences, the system can identify whether detected differences correspond to actual code changes or are merely environmental variations, thus filtering out false positives

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If all differences are highlighted in the same way, then comprehensive coverage is achieved, but developer focus is diluted by non-critical changes

Engineering Contradiction:
Improvedifference identification completenessVSAvoiddeveloper focus
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The patent applies different visual qualities (color codes) to different types of differences: SDAs are highlighted with one color (e.g., red) to indicate code-related changes requiring attention, while MDAs are highlighted with another color (e.g., yellow) to indicate environmental changes that can be ignored. This local differentiation maintains complete coverage while guiding developer focus to critical issues

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent uses color changes as a visual encoding mechanism to convey the significance of detected differences. By assigning distinct colors to SDAs and MDAs, the system provides immediate visual cues that help developers quickly prioritize their attention without missing any differences, thus maintaining reliability while improving ease of operation

Inventive Principle:
Principle #32Color changes

Data Source

PatentUS12361523B1Image comparator with difference area labeling
Publication Date: 2025.07.15 BROWSERSTACK LTD
  • US12361523B1 patent drawing
  • US12361523B1 patent drawing
  • US12361523B1 patent drawing

AI summary

An image difference generator can receive first and second images of first and second display outputs of a computer program, such as a webpage. The images can contain two different categories of differences, one related to the differences in the webpage code, and one related to the differences unrelated to the webpage code, such as differences due to environmental, platform, or generally indeterministic sources, unrelated to the webpage code. The image difference generator can identify each category of the differences and their corresponding regions in each image, and highlight them differently in an output difference image. A developer of the software or webpage can inspect the output difference image and focus her development activity on the appropriate category.