From e1267e0e81620a088f9ca9b970247024a9c21884 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 1 Jun 2013 14:37:22 -0400 Subject: [PATCH] slightly improved example --- python_examples/sequence_segmenter.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python_examples/sequence_segmenter.py b/python_examples/sequence_segmenter.py index a29bddf61..811acdf32 100755 --- a/python_examples/sequence_segmenter.py +++ b/python_examples/sequence_segmenter.py @@ -62,7 +62,8 @@ training_sequences[0].append(outside) # index 6 training_sequences[0].append(outside) # index 7 segments[0].append(dlib.range(2,5)) -# Add another training sequence +# Add another training sequence. This one is a little longer and has two "inside" segments +# which should be detected. training_sequences[1].append(outside) # index 0 training_sequences[1].append(outside) # index 1 training_sequences[1].append(inside) # index 2 @@ -71,7 +72,11 @@ training_sequences[1].append(inside) # index 4 training_sequences[1].append(inside) # index 5 training_sequences[1].append(outside) # index 6 training_sequences[1].append(outside) # index 7 +training_sequences[1].append(outside) # index 8 +training_sequences[1].append(inside) # index 9 +training_sequences[1].append(inside) # index 10 segments[1].append(dlib.range(2,6)) +segments[1].append(dlib.range(9,11)) # Now that we have a simple training set we can train a sequence segmenter. However, the