Skip to content

Commit

Permalink
ci: remove vision crop tests
Browse files Browse the repository at this point in the history
  • Loading branch information
burkedavison committed Nov 21, 2023
1 parent 5352821 commit c692ad1
Showing 1 changed file with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Integer> 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<Integer> 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 =
Expand Down

0 comments on commit c692ad1

Please sign in to comment.