npxpy.resources.Image
Bases: Resource
A class to represent an image resource.
Source code in npxpy/resources.py
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
|
__init__(file_path, name='image')
Initialize the image resource with the specified parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_path
|
str
|
Path where the image is stored. |
required |
name
|
str
|
Name of the image resource. Defaults to 'image'. |
'image'
|
Source code in npxpy/resources.py
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
|