File size: 818 Bytes
380570c
4ef921e
 
 
 
 
 
b4454fe
 
4ef921e
 
b4454fe
 
 
 
 
 
 
 
 
4ef921e
b4454fe
4ef921e
b4454fe
 
 
 
 
 
 
 
 
4ef921e
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Provide paths to your test images
import os
import random

def get_image_names():
    # Get people images
    people_dir = "public/images/people" 
    # Get background images
    background_dir = "public/images/backgrounds"


    data = [
      ['e.jpg', 'e.png', 10, 60],
      ['f.jpg', 'f.png', 10, 60],
      ['g.jpeg', 'g.png', 10, 40],      
      ['a.jpg', 'a.png', 10, 130],
      ['b.jpg', 'b.png', 10, 40],
      ['c.jpg', 'c.png', 10, 60],
      ['d.png', 'd.png', 10, 50]
    ]

    generate_testing_list = []

    for i in range(len(data)):
      generate_testing_list.append(
        list((
          os.path.join(people_dir, data[i][0]), 
          os.path.join(background_dir, data[i][1]), 
          data[i][2], 
          data[i][3]
          ))
        )
    
    return generate_testing_list