Spaces:
Runtime error
Runtime error
Download cpp_engine/src/main.cpp from Ypeng12/E-commerce-platform: direct link, hf CLI and curl.
- Browser
- Download file 384 Bytes
-
https://huggingface.co/spaces/Ypeng12/E-commerce-platform/resolve/main/cpp_engine/src/main.cpp
- Command line
-
hf download hf://spaces/Ypeng12/E-commerce-platform/cpp_engine/src/main.cpp
-
curl -L -o main.cpp https://huggingface.co/spaces/Ypeng12/E-commerce-platform/resolve/main/cpp_engine/src/main.cpp
384 Bytes
| int main(int argc, char** argv) { | |
| std::string img_a = (argc > 1) ? argv[1] : "sample_gucci.jpg"; | |
| std::string img_b = (argc > 2) ? argv[2] : "sample_gucci.jpg"; | |
| VisionPyramidEngine engine; | |
| VisionResult result = engine.match_images(img_a, img_b); | |
| std::cout << engine.to_json(result) << std::endl; | |
| return 0; | |
| } | |