Add support for Recorder Reader #120
Comments
Okay , will start working on it |
i think we shall replace imp with "recorder" as this is the remaining value of enum imp with value equals to 0 |
Hi, I just had a look at the code of RecorderReader.h which isn't currently supported. It wasn't written by me, but after reading it I think we can support it. It is a simple code which reads some images from a path in rgb and depth format. Using dummy rgb and depth images, see if RecorderReader works. I am changing this issue to add support for already written Recorder Reader if possible. Feel free to comment below if you face any issues or have any questions. RecorderReader.cpp is present here. |
@vinay0410 i will work on it |
RecorderReader.h:9:10: fatal error: Common/Sample.h: No such file or directory |
It's present here, https://github.com/JdeRobot/dl-DetectionSuite/blob/master/DeepLearningSuite/DeepLearningSuiteLib/Common/Sample.h RecorderReader.h isn't importing it correctly. Although you need not include it, since it's already present in You may take hint from this file on how it's done https://github.com/JdeRobot/dl-DetectionSuite/blob/master/DeepLearningSuite/DeepLearningSuiteLib/DatasetConverters/liveReaders/CameraReader.h |
test.cpp to support RecorderReader after modifying those files modifying include to the right paths ,..etc RecorderReader.cpp #include "RecorderReader.h" RecorderReader::RecorderReader(const std::string &colorImagesPath, const std::string &depthImagesPath):DatasetReader(true), colorPath(colorImagesPath), depthPath(depthImagesPath) { RecorderReader::RecorderReader(const std::string &dataPath):DatasetReader(true), colorPath(dataPath), depthPath(dataPath) { void RecorderReader::getImagesByIndexes(const std::string& path, std::vector& indexes,std::string sufix){
} std::string RecorderReader::getPathByIndex(const std::string& path, int id,std::string sufix){ int RecorderReader::closest(std::vector const& vec, int value) {
} bool RecorderReader::getNextSample(Sample &sample) {
// if (!this->syncedData)
} int RecorderReader::getNumSamples() { RecorderReader::~RecorderReader(){ } #ifndef SAMPLERGENERATOR_RECORDERCONVERTER_H #include class RecorderReader: public DatasetReader { private:
#endif //SAMPLERGENERATOR_RECORDERCONVERTER_H DatasetReader.h #ifndef SAMPLERGENERATOR_DATASETREADER_H #include #include "../../Common/Sample.h" class DatasetReader { protected: typedef boost::shared_ptr DatasetReaderPtr; #endif //SAMPLERGENERATOR_DATASETREADER_H |
You are supposed to integrate this with DetectionSuite and then build using the steps mentioned |
i solved another problem and the problem was in building and i builded well after modifications i did like you said i want ask how can i test RecorderReader now or just you want fixing errors and make pull request with final modifications in files |
It is a simple code which reads some images from a path in rgb and depth format. Using dummy rgb and depth images, see if RecorderReader works. |
See this build log. You will see issues similar to:
This error is occurring because a variable of type enum is being appended to a string.
The text was updated successfully, but these errors were encountered: