![]() |
DvsenseDriver
1.0.3
The SDK for dvsense products.
|
This section introduces how to read the recorded files through the API interface.
The SDK supports reading the .raw
file format. The raw file records the undecoded data directly obtained from the dynamic vision camera. The encoding method is EVT3.0
The header files related to file reading are located in DvsenseDriver/FileReader/DvsFileReader.h
You can create an instance of dvsense::DvsFile via dvsense::DvsFileReader::createFileReader, and use it to load and process data. dvsense::DvsFile is an encapsulation of dvsense::DvsFileReader for ease of use: typedef DVSENSE_API std::unique_ptr<DvsFileReader> DvsFile
;
Please note that the reader
does not directly load data after construction. You need to manually call dvsense::DvsFileReader::loadFile to load the file data. The running time of the function depends on the size of the file.
Two interfaces for data reading are provided in dvsense.DvsFileReader:
When calling these two interfaces, the file pointer within dvsense::DvsFileReader will also be adjusted accordingly.
Attention!! What this function returns std::shared_ptr<dvsense::Event2DVector> is not thread - safe, and it will be overwritten when the function is called next time.
For files that have already been loaded, an interface dvsense::DvsFileReader::seekTime is provided to find and jump to a specified time. You can first obtain the start timestamp and the last timestamp in the file through dvsense::DvsFileReader::getStartTimeStamp and dvsense::DvsFileReader::getEndTimeStamp respectively.