fix the build 94;100
Some checks failed
Gradle Build / build (push) Failing after 11m48s

This commit is contained in:
rattatwinko
2025-05-25 13:01:06 +02:00
parent 26d2268da7
commit c5a14012a6

View File

@@ -91,13 +91,13 @@ public class CameraApp extends JFrame {
controlsPanel.add(new JLabel("Camera:"), gbc);
gbc.gridx = 1;
cameraSelect = new JComboBox<>();
cameraSelect.addActionListener(_ -> changeCamera());
cameraSelect.addActionListener(e -> changeCamera()); // Fix for Issue 1
controlsPanel.add(cameraSelect, gbc);
// Detection checkbox
gbc.gridx = 0; gbc.gridy = 1; gbc.gridwidth = 2;
detectionCheckbox = new JCheckBox("Enable Object Detection", true);
detectionCheckbox.addActionListener(_ -> toggleDetection());
detectionCheckbox.addActionListener(e -> toggleDetection()); // Fix for Issue 1
controlsPanel.add(detectionCheckbox, gbc);
// Buttons
@@ -695,7 +695,7 @@ class DetectionThread extends SwingWorker<Mat, Void> {
int offset = i * out.cols();
float confidence = data[offset + 4];
if (confidence > 0.5) {
if (confidence > 0.2) {
// Find class with maximum score
int classId = 0;
float maxScore = 0;