MCPcopy Create free account
hub / github.com/ARM-software/armnn / GetResourceFilePath

Function GetResourceFilePath

samples/ObjectDetection/test/ImageUtilsTest.cpp:73–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73static std::string GetResourceFilePath(std::string filename)
74{
75 std::string testResources = TEST_RESOURCE_DIR;
76 if (0 == testResources.size())
77 {
78 throw "Invalid test resources directory provided";
79 }
80 else
81 {
82 if(testResources.back() != '/')
83 {
84 return testResources + "/" + filename;
85 }
86 else
87 {
88 return testResources + filename;
89 }
90 }
91}
92
93TEST_CASE("Test Adding Inference output to frame")
94{

Callers 1

ImageUtilsTest.cppFile · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected