12345678910111213141516 |
- #include "FeedLevelDetector.h"
- #include <iostream>
- int main(int argc, char** argv) {
- if (argc != 2) {
- std::cerr << "Usage: " << argv[0] << " <image_path>" << std::endl;
- return -1;
- }
-
- FeedLevelDetector detector;
- float distance = detector.detectFeedLevel(argv[1]);
-
- std::cout << "Feed level distance from top: " << distance << " pixels" << std::endl;
-
- return 0;
- }
|