DiffResult
- class DiffResult(base_image: Image, comparing_image: Image, diff_image: Image | None, status: CompareStatus, diff_pixel_count: int | None, diff_percentage: float | None, diff_lines: list[int], use_checker_transparency: bool = True)[source]
Result container for odiff comparison.
Attributes Summary
__annotations____dataclass_fields____dataclass_params____dict____doc____hash____match_args____module____weakref__list of weak references to the object (if defined)
use_checker_transparencyMethods Summary
Implement delattr(self, name).
Default dir() implementation.
Return self==value.
Default object formatter.
Return self>=value.
Return getattr(self, name).
Return self>value.
This method is called when a class is subclassed.
Return self<=value.
Return self<value.
Return self!=value.
Helper for pickle.
Helper for pickle.
Return repr(self).
Implement setattr(self, name, value).
Size of object in memory, in bytes.
Return str(self).
Abstract classes can override this to customize issubclass().
Magic method for rendering automatically in jupyter notebooks.
Create an apng from the images and their diff if there is any.
Methods Documentation
- __delattr__(name, /)
Implement delattr(self, name).
- __dir__()
Default dir() implementation.
- __eq__(other)
Return self==value.
- __format__(format_spec, /)
Default object formatter.
- __ge__(value, /)
Return self>=value.
- __getattribute__(name, /)
Return getattr(self, name).
- __gt__(value, /)
Return self>value.
- __init__(base_image: Image, comparing_image: Image, diff_image: Image | None, status: CompareStatus, diff_pixel_count: int | None, diff_percentage: float | None, diff_lines: list[int], use_checker_transparency: bool = True) None
- __init_subclass__()
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- __le__(value, /)
Return self<=value.
- __lt__(value, /)
Return self<value.
- __ne__(value, /)
Return self!=value.
- __new__(**kwargs)
- __reduce__()
Helper for pickle.
- __reduce_ex__(protocol, /)
Helper for pickle.
- __repr__()
Return repr(self).
- __setattr__(name, value, /)
Implement setattr(self, name, value).
- __sizeof__()
Size of object in memory, in bytes.
- __str__()
Return str(self).
- __subclasshook__()
Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).