Skip to content

Commit

Permalink
Fix ROI labeling for different camera types
Browse files Browse the repository at this point in the history
  • Loading branch information
ljkeller committed Mar 18, 2024
1 parent 2373546 commit cd60605
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Binary file modified app/exe/spark
Binary file not shown.
4 changes: 4 additions & 0 deletions app/src/parkinglot_detection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,11 @@ void addButtonCallback(int, void *)
cv::VideoCapture vid;
redraw_rectangle:
if (camera_input)
{
vid.open(0);
vid.set(CAP_PROP_FRAME_WIDTH, 1920);
vid.set(CAP_PROP_FRAME_HEIGHT, 1080);
}
else
vid.open(filename);
for (int frame = 0; frame < 10; frame++)
Expand Down

0 comments on commit cd60605

Please # to comment.