◆ refreshData()
fiftyone\pipeline\devicedetection\DeviceDetectionOnPremise::refreshData | ( | string | $fileName_or_data = null ,
|
int | $length = null
|
||
) |
Ask the engine to start using the specified data file for detections.
This can be used in 3 different scenarios:
- The data file that was originally used to create the engine has been updated on disk. In this case, no parameters are needed.
- A new data file is available, but it is in a different location to the original. In this case, the parameter should be the new data file location.
- A new data file is available in memory. The first parameter will be the variable holding the in-memory data file. The second will be the size of the data file in bytes.
- Parameters
-
null | string - $fileName_or_data - Data file path or the variable holding the in-memory data file
null | int - $length - Length of the in-memory data file in bytes