Skip to content

Commit

Permalink
Use AVI instead of raw MJPEG
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold856 committed Dec 14, 2024
1 parent 6832afd commit 623292e
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 623292e

Please sign in to comment.