Skip to content

Commit 693e44e

Browse files
committed
Updated to better capped model
1 parent 27f045b commit 693e44e

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

engines/reefscape_capped_v2.onnx

10.1 MB
Binary file not shown.

src/Camera.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Camera::Camera(cs::UsbCamera *camRef, cs::VideoMode config, AprilTagPoseEstimato
1515
sink = new cs::CvSink{frc::CameraServer::GetVideo(*cam)};
1616
/*source = new cs::CvSource{"source" + id, config};*/
1717
cam->SetVideoMode(config);
18-
source = frc::CameraServer::PutVideo(std::string_view("source" + id), 160, 120);
18+
source = frc::CameraServer::PutVideo(std::string_view("source" + std::to_string(id)), 160, 120);
1919
/*frc::CameraServer::StartAutomaticCapture(*source);*/
2020

2121
/*boxLabelVector = &boxDets1;*/

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ int main(int argc, char** argv)
164164
std::this_thread::sleep_for(std::chrono::milliseconds(300));
165165
// Start capture on CvSources
166166
// TCP ports start at 1181
167-
std::string onnxPath = "../engines/reefscape_capped_v1.onnx";
167+
std::string onnxPath = "../engines/reefscape_capped_v2.onnx";
168168
std::string enginePath = onnxPath.substr(0, onnxPath.size() - 4) + "engine";
169169
bool modelFound = false;
170170
if(!IsPathExist(enginePath)) {

0 commit comments

Comments
 (0)