Skip to content

Commit 9320be5

Browse files
authored
Merge pull request #2013 from dominikWin/docs/how-to-json-path
docs: Update JSONSink example path
2 parents d109fba + f6d52b5 commit 9320be5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/how_to/save_detections.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ with
234234
model = get_model(model_id="yolov8n-640")
235235
frames_generator = sv.get_video_frames_generator(<SOURCE_VIDEO_PATH>)
236236

237-
with sv.JSONSink(<TARGET_CSV_PATH>) as sink:
237+
with sv.JSONSink(<TARGET_JSON_PATH>) as sink:
238238
for frame_index, frame in enumerate(frames_generator):
239239

240240
results = model.infer(image)[0]
@@ -250,7 +250,7 @@ with
250250
model = YOLO("yolov8n.pt")
251251
frames_generator = sv.get_video_frames_generator(<SOURCE_VIDEO_PATH>)
252252

253-
with sv.JSONSink(<TARGET_CSV_PATH>) as sink:
253+
with sv.JSONSink(<TARGET_JSON_PATH>) as sink:
254254
for frame_index, frame in enumerate(frames_generator):
255255

256256
results = model(frame)[0]
@@ -268,7 +268,7 @@ with
268268
model = DetrForObjectDetection.from_pretrained("facebook/detr-resnet-50")
269269
frames_generator = sv.get_video_frames_generator(<SOURCE_VIDEO_PATH>)
270270

271-
with sv.JSONSink(<TARGET_CSV_PATH>) as sink:
271+
with sv.JSONSink(<TARGET_JSON_PATH>) as sink:
272272
for frame_index, frame in enumerate(frames_generator):
273273

274274
frame = sv.cv2_to_pillow(frame)

0 commit comments

Comments
 (0)