Clean up .gitignore (#1897)

This commit is contained in:
Gold856
2025-04-15 02:37:08 +00:00
committed by GitHub
parent be490a7dea
commit 63b1ff242c
16 changed files with 20 additions and 89 deletions

View File

@@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.photonvision.vision.target;
import java.util.ArrayList;
@@ -26,7 +27,6 @@ import org.photonvision.vision.opencv.Releasable;
import org.photonvision.vision.pipe.impl.NeuralNetworkPipeResult;
public class PotentialTarget implements Releasable {
public final Contour m_mainContour;
public final List<Contour> m_subContours;
public final CVShape shape;

View File

@@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.photonvision.vision.target;
public enum RobotOffsetPointMode {

View File

@@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.photonvision.vision.target;
public enum RobotOffsetPointOperation {

View File

@@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.photonvision.vision.target;
import org.opencv.calib3d.Calib3d;
@@ -27,7 +28,6 @@ import org.photonvision.vision.calibration.CameraCalibrationCoefficients;
import org.photonvision.vision.opencv.DualOffsetValues;
public class TargetCalculations {
/**
* Calculates the yaw and pitch of a point in the image. Yaw and pitch must be calculated together
* to account for perspective distortion. Yaw is positive right, and pitch is positive up.
@@ -49,7 +49,6 @@ public class TargetCalculations {
double targetCenterY,
double verticalFocalLength,
CameraCalibrationCoefficients cameraCal) {
if (cameraCal != null) {
// undistort
MatOfPoint2f temp = new MatOfPoint2f(new Point(targetCenterX, targetCenterY));

View File

@@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.photonvision.vision.target;
import com.fasterxml.jackson.annotation.JsonAlias;

View File

@@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.photonvision.vision.target;
public enum TargetOffsetPointEdge {

View File

@@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.photonvision.vision.target;
public enum TargetOrientation {

View File

@@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.photonvision.vision.target;
import edu.wpi.first.apriltag.AprilTagDetection;
@@ -502,7 +503,6 @@ public class TrackedTarget implements Releasable {
double verticalFocalLength,
double imageArea,
CameraCalibrationCoefficients cal) {
this.isLandscape = isLandscape;
this.targetOffsetPointEdge = targetOffsetPointEdge;
this.robotOffsetPointMode = robotOffsetPointMode;
@@ -522,7 +522,6 @@ public class TrackedTarget implements Releasable {
Point robotOffsetSinglePoint,
DualOffsetValues dualOffsetValues,
FrameStaticProperties frameStaticProperties) {
this.isLandscape = isLandscape;
this.targetOffsetPointEdge = targetOffsetPointEdge;
this.robotOffsetPointMode = robotOffsetPointMode;

View File

@@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.photonvision.vision.target;
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -41,7 +42,6 @@ import org.photonvision.vision.frame.FrameStaticProperties;
import org.photonvision.vision.opencv.DualOffsetValues;
public class TargetCalculationsTest {
private static Size imageSize = new Size(1280, 720);
private static Point imageCenterPoint =
new Point(imageSize.width / 2.0 - 0.5, imageSize.height / 2.0 - 0.5);

View File

@@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.photonvision.vision.target;
import static org.junit.jupiter.api.Assertions.assertEquals;