From c692ad1ee34f4f3dfe12e52ae4b6796c189ae76b Mon Sep 17 00:00:00 2001 From: Burke Davison Date: Tue, 21 Nov 2023 09:43:39 -0500 Subject: [PATCH] ci: remove vision crop tests --- .../google/cloud/vision/it/ITSystemTest.java | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java b/java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java index 141ed836f460..5008356537ba 100644 --- a/java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java +++ b/java-vision/google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java @@ -539,32 +539,6 @@ public void detectWebEntitiesIncludeGeoResultsGcsTest() { assertThat(allAnnotations).ignoringCase().contains("Palace of Fine Arts"); } - @Test - public void detectCropHintsTest() throws IOException { - AnnotateImageResponse res = requestAnnotatedImage("wakeupcat.jpg", Type.CROP_HINTS, false); - List actual = new ArrayList<>(); - CropHintsAnnotation annotation = res.getCropHintsAnnotation(); - for (CropHint hint : assertNotEmpty(res, annotation.getCropHintsList())) { - for (Vertex vertex : assertNotEmpty(res, hint.getBoundingPoly().getVerticesList())) { - actual.add(vertex.getX()); - } - } - assertEquals(Arrays.asList(210, 476, 476, 210), actual); - } - - @Test - public void detectCropHintsGcsTest() throws IOException { - AnnotateImageResponse res = requestAnnotatedImage("label/wakeupcat.jpg", Type.CROP_HINTS, true); - List actual = new ArrayList<>(); - CropHintsAnnotation annotation = res.getCropHintsAnnotation(); - for (CropHint hint : assertNotEmpty(res, annotation.getCropHintsList())) { - for (Vertex vertex : assertNotEmpty(res, hint.getBoundingPoly().getVerticesList())) { - actual.add(vertex.getX()); - } - } - assertEquals(Arrays.asList(210, 476, 476, 210), actual); - } - @Test public void detectDocumentTextTest() throws IOException { AnnotateImageResponse res =