#ifndef MEDIAPIPE_FRAMEWORK_RESOURCES_H_ #define MEDIAPIPE_FRAMEWORK_RESOURCES_H_ #include <memory> #include <string> #include "absl/status/status.h" #include "absl/strings/string_view.h" namespace mediapipe { // Represents an interface to load resources in calculators and subgraphs. // // Should be accessed through `CalculatorContext::GetResources` and // `SubgraphContext::GetResources`. // // Can be configured per graph by setting custom object through // `kResourcesService` on `CalculatorGraph`. class Resources { … }; // `Resources` object which can be used in place of `GetResourceContents`. std::unique_ptr<Resources> CreateDefaultResources(); } // namespace mediapipe #endif // MEDIAPIPE_FRAMEWORK_RESOURCES_H_