User Interface Code Injection Verification via Image Comparison

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing user interface modification techniques for web sites often fail to ensure proper display of the interface as intended, leading to discrepancies between the expected and actual user interface images.

Innovation Solution

A computer-implemented method and system that access web site data, inject additional code such as HTML, JavaScript, or Cascading Style Sheet, display the web site, obtain and compare actual and expected user interface images, generate an error message if they do not match, and modify the code to align the actual image with the expected image.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If additional code is injected into web site data to modify the user interface, then the user interface functionality is enhanced, but the display accuracy and reliability of the user interface deteriorates due to mismatches between expected and actual images

Engineering Contradiction:
Improveuser interface functionalityVSAvoiddisplay accuracy
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The system performs preliminary actions by capturing the actual user interface image immediately after code injection and comparing it with the expected image before the discrepancy affects user experience. This proactive approach allows early detection and correction of injection issues.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system implements a feedback mechanism where the actual user interface image is continuously monitored and compared with the expected image. When mismatches are detected, error messages are generated and transmitted to the server, which then sends corrected code back to the electronic device, creating a closed-loop feedback system that maintains display accuracy.

Inventive Principle:
Principle #23Feedback

2Productivity

If code injection is performed to modify the user interface, then the interface can be dynamically updated, but errors in injection lead to discrepancies between expected and actual display

Engineering Contradiction:
Improveinterface update speedVSAvoidinjection accuracy
Core Design Contradiction:
ProductivityVSManufacturing precision

Solution Approach 1:

The system uses feedback by comparing actual rendered images with expected images to detect injection errors. When discrepancies are found, error messages are sent to the server, which provides corrected code, enabling automatic correction of injection errors while maintaining fast update speeds.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system applies preliminary anti-action by proactively detecting potential injection errors through image comparison before they significantly impact user experience. Error messages are generated in advance, allowing the system to prevent or correct display discrepancies before they propagate.

Inventive Principle:
Principle #9Preliminary anti-action

3Measurement precision

If image comparison is performed to verify user interface display, then display accuracy is improved, but system complexity and processing time increase

Engineering Contradiction:
Improvedisplay verification accuracyVSAvoidsystem complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The system uses copying by creating image representations (actual and expected images) of the user interface for comparison. Instead of analyzing the complex code structure directly, the system compares visual copies of the rendered interface, simplifying the verification process while maintaining high accuracy.

Inventive Principle:
Principle #26Copying

4Ease of repair

If error messages are generated and transmitted to server, then correction capability is enhanced, but communication overhead and processing time increase

Engineering Contradiction:
Improveerror correction capabilityVSAvoidcommunication overhead
Core Design Contradiction:
Ease of repairVSLoss of time

Solution Approach 1:

The system implements feedback by automatically generating error messages when image mismatches are detected and transmitting them to the server. The server processes these errors and sends corrected code back, creating an efficient error correction loop that minimizes manual intervention while maintaining fast correction times.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS9003313B1System and method for modifying a user interface
Publication Date: 2015.04.07 GOOGLE LLC
  • US9003313B1 patent drawing
  • US9003313B1 patent drawing
  • US9003313B1 patent drawing

AI summary

A system and method for determining whether a user interface is properly injected on an electronic device are provided. Web site data for a web site is accessed, additional code are injected into the accessed web site data and the web site based on the injected additional code is provided for display. An actual image of a user interface corresponding to the displayed web site is obtained. An expected image of the user interface in which the additional code is properly injected into the web site is received. The expected image of the user interface with the actual image of the user interface are compared. In a case where the expected image of the user interface and the actual image of the user interface do not match, an error message is generated and notification of the error message is provided to the electronic device.