Пример #1
0
def southwest_crop(lat=51.3, lng = -3):
    olga=np.genfromtxt('coord_lists/Olgas_list_gps.csv', delimiter=',', skip_header= True, dtype='float32')
    southwest = snap_list(olga, zoom=ZOOM_LEVEL, img_size=IMAGE_SIZE)
    southwesto = olga[np.logical_and(olga[:,1] < lat, olga[:,0]< lng), :]
    southwest = snap_list(southwesto, zoom=ZOOM_LEVEL, img_size=IMAGE_SIZE)
    print('Original num of sites: %d. Num of pictures to download: %d' %(southwesto.shape[0], southwest.shape[0]))
    suspect = tensorflow_net_heat_batch(csv=False, coords=southwest, gps=True)
    return suspect
Пример #2
0
def blackpool_crop(long_range=[-3.06, -2.98],
                   lat_range=[53.77, 53.88],
                   zoom=ZOOM_LEVEL,
                   img_size=IMAGE_SIZE):
    blackpool = snap_square(long_range=long_range,
                            lat_range=lat_range,
                            zoom=zoom,
                            img_size=img_size)
    print('Num of pictures to download: %d' % (blackpool.shape[0]))
    suspect = tensorflow_net_heat_batch(csv=False, coords=blackpool, gps=True)
    return suspect
Пример #3
0
def southwest_crop(lat=51.3, lng=-3):
    olga = np.genfromtxt('coord_lists/Olgas_list_gps.csv',
                         delimiter=',',
                         skip_header=True,
                         dtype='float32')
    southwest = snap_list(olga, zoom=ZOOM_LEVEL, img_size=IMAGE_SIZE)
    southwesto = olga[np.logical_and(olga[:, 1] < lat, olga[:, 0] < lng), :]
    southwest = snap_list(southwesto, zoom=ZOOM_LEVEL, img_size=IMAGE_SIZE)
    print('Original num of sites: %d. Num of pictures to download: %d' %
          (southwesto.shape[0], southwest.shape[0]))
    suspect = tensorflow_net_heat_batch(csv=False, coords=southwest, gps=True)
    return suspect
Пример #4
0
def blackpool_crop(long_range = [-3.06,-2.98], lat_range= [53.77, 53.88], zoom = ZOOM_LEVEL, img_size = IMAGE_SIZE):
    blackpool = snap_square(long_range=long_range, lat_range=lat_range, zoom=zoom, img_size=img_size)
    print('Num of pictures to download: %d' %(blackpool.shape[0]))
    suspect = tensorflow_net_heat_batch(csv=False, coords=blackpool, gps=True)
    return suspect