Skip to content

Commit

Permalink
Merge pull request #7 from Gold856/ElliotScher/main
Browse files Browse the repository at this point in the history
Use AVI instead of raw MJPEG
  • Loading branch information
ElliotScher authored Dec 14, 2024
2 parents 6832afd + 623292e commit 2269996
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion wpical/src/main/native/cpp/fieldcalibration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ bool fieldcalibration::process_video_file(
int frame_num = 0;

while (video_input.read(frame)) {
std::cout << "Processing " << path << " - Frame " << frame_num << std::endl;
std::cout << "Processing " << path << " - Frame " << frame_num++
<< std::endl;

// Convert color frame to grayscale frame
cv::cvtColor(frame, frame_gray, cv::COLOR_BGR2GRAY);
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion wpical/src/test/native/cpp/test_calibrate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

const std::string projectRootPath = PROJECT_ROOT_PATH;
#ifdef __linux__
const std::string fileSuffix = ".mjpg";
const std::string fileSuffix = ".avi";
const std::string videoLocation = "/altfieldvideo";
#else
const std::string fileSuffix = ".mp4";
Expand Down

0 comments on commit 2269996

Please sign in to comment.