mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-27 02:01:40 +00:00
Clean up .gitignore (#1897)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user