Download DataModels/ShapeAttributes.py from Umer2762/Doctor_Handwriting_Text_Detection: direct link, hf CLI and curl.
- Browser
- Download file 493 Bytes
-
https://huggingface.co/spaces/Umer2762/Doctor_Handwriting_Text_Detection/resolve/main/DataModels/ShapeAttributes.py
- Command line
-
hf download hf://spaces/Umer2762/Doctor_Handwriting_Text_Detection/DataModels/ShapeAttributes.py
-
curl -L -o ShapeAttributes.py https://huggingface.co/spaces/Umer2762/Doctor_Handwriting_Text_Detection/resolve/main/DataModels/ShapeAttributes.py
493 Bytes
| class ShapeAttributes: | |
| def __init__(self, x: int, y: int, width: int, height: int): | |
| self.x = x | |
| self.y = y | |
| self.width = width | |
| self.height = height | |
| def to_dict(self): | |
| return { | |
| "x": self.x, | |
| "y": self.y, | |
| "width": self.width, | |
| "height": self.height, | |
| } | |
| def __repr__(self): | |
| return f"ShapeAttributes(x={self.x}, y={self.y}, width={self.width}, height={self.height})" | |