From 3740553dda1e3cf05765d95609f06a9476bcec4b Mon Sep 17 00:00:00 2001 From: BytingBulldogs3539 Date: Thu, 28 Dec 2023 23:29:16 -0500 Subject: [PATCH] Update LibcameraGpuFrameProvider.java --- .../vision/frame/provider/LibcameraGpuFrameProvider.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/photon-core/src/main/java/org/photonvision/vision/frame/provider/LibcameraGpuFrameProvider.java b/photon-core/src/main/java/org/photonvision/vision/frame/provider/LibcameraGpuFrameProvider.java index 36ebe47cfb..e8697f8b60 100644 --- a/photon-core/src/main/java/org/photonvision/vision/frame/provider/LibcameraGpuFrameProvider.java +++ b/photon-core/src/main/java/org/photonvision/vision/frame/provider/LibcameraGpuFrameProvider.java @@ -91,9 +91,7 @@ public Frame get() { @Override public void requestFrameThresholdType(FrameThresholdType type) { - if (settables.getModel() == SensorModel.OV9281 && type.equals(FrameThresholdType.GREYSCALE)) - LibCameraJNI.setGpuProcessType(settables.r_ptr, 4); // 4 = Grayscale pass through. - else LibCameraJNI.setGpuProcessType(settables.r_ptr, type.ordinal()); + LibCameraJNI.setGpuProcessType(settables.r_ptr, type.ordinal()); } @Override