Skip to content

Commit 64c3567

Browse files
committed
Merge branch 'sdk-1.2.x-update'
2 parents ce6c317 + 2955f4a commit 64c3567

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Containerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use the same base image version as the clams-python python library version
2-
FROM ghcr.io/clamsproject/clams-python-opencv4:1.2.4
2+
FROM ghcr.io/clamsproject/clams-python-opencv4:1.2.5
33
# See https://github.com/orgs/clamsproject/packages?tab=packages&q=clams-python for more base images
44
# IF you want to automatically publish this image to the clamsproject organization,
55
# 1. you should have generated this template without --no-github-actions flag

app.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def run_on_images(self, mmif: Mmif, new_view: View) -> Mmif:
7272
for idx, box in enumerate(box_list):
7373
annotation = new_view.new_annotation(f"td{idx}", AnnotationTypes.BoundingBox)
7474
annotation.add_property("document", imgdocument.id)
75-
annotation.add_property("boxType", "text")
75+
annotation.add_property("label", "text")
7676
x0, y0, x1, y1 = box
7777
annotation.add_property(
7878
"coordinates", [[x0, y0], [x1, y0], [x0, y1], [x1, y1]]
@@ -123,7 +123,7 @@ def run_on_video(self, mmif: Mmif, videodocument: Document, new_view: View, **co
123123
tp_annotation.add_property("timePoint", tp)
124124

125125
#bb_annotation.add_property("timePoint", tp)
126-
bb_annotation.add_property("boxType", "text")
126+
bb_annotation.add_property("label", "text")
127127
x0, y0, x1, y1 = box
128128
bb_annotation.add_property("coordinates", [[x0, y0], [x1, y0], [x0, y1], [x1, y1]])
129129

metadata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def appmetadata() -> AppMetadata:
2121
)
2222
metadata.add_input_oneof(DocumentTypes.VideoDocument, DocumentTypes.ImageDocument)
2323
metadata.add_input(AnnotationTypes.TimeFrame, required=False)
24-
metadata.add_output(AnnotationTypes.BoundingBox, bboxtype="text")
24+
metadata.add_output(AnnotationTypes.BoundingBox, label="text")
2525

2626
metadata.add_parameter(
2727
name="timeUnit",

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
clams-python==1.2.4
1+
clams-python==1.2.5
22

33
opencv-python-rolling==4.7.* # standard 4.7.x version (no rolling release) has bug with old CPUs
44
imutils

0 commit comments

Comments
 (0)