The interface parameters are described as follows:
The interface parameters are described as follows:
| parameter | format | meaning |
| parameter | format | meaning |
...
@@ -212,6 +212,7 @@ The interface parameters are described as follows:
...
@@ -212,6 +212,7 @@ The interface parameters are described as follows:
| img | numpy.ndarray | Images in ndarray format |
| img | numpy.ndarray | Images in ndarray format |
| step | int | Record the training steps |
| step | int | Record the training steps |
| walltime | int | Record the time-stamp of the data, the default is the current time-stamp |
| walltime | int | Record the time-stamp of the data, the default is the current time-stamp |
| dataformats| string | Format of image,include `NCHW`、`HWC`、`HW`,default is `HWC`|
### Demo
### Demo
The following shows an example of using Image to record data, and the script can be found in [Image Demo](https://github.com/PaddlePaddle/VisualDL/blob/develop/demo/components/image_test.py).
The following shows an example of using Image to record data, and the script can be found in [Image Demo](https://github.com/PaddlePaddle/VisualDL/blob/develop/demo/components/image_test.py).