File name
Commit message
Commit date
bug fix : mismatch in request file fields name causing postprocess_draft.py not reading segmented image
06-03
bug fix : mismatch in request file fields name causing postprocess_draft.py not reading segmented image
06-03
bug fix : mismatch in request file fields name causing postprocess_draft.py not reading segmented image
06-03
bug fix : mismatch in request file fields name causing postprocess_draft.py not reading segmented image
06-03
bug fix : mismatch in request file fields name causing postprocess_draft.py not reading segmented image
06-03
1. code cleanup of inference_gpu_.py and inference_.py is now inference_cpu_.py 2. streaming_url_updator.py CORS fix 3. working DB INSERT of postprocess_draft.py
05-29
bug fix : mismatch in request file fields name causing postprocess_draft.py not reading segmented image
06-03
bug fix : mismatch in request file fields name causing postprocess_draft.py not reading segmented image
06-03
import os
import pandas as pd
from ITS.api import gather_cctv_list
df = pd.read_csv("result/129.2_129.3_y35.9_36.07.csv")
name_of_original = df.loc[0]["cctvname"]
lat = df.loc[0]["coordx"]
lon = df.loc[0]["coordy"]
apiKey = os.getenv("ITS_API")
lat_lon_interval = 0.00001
api_result = gather_cctv_list(xmin=lat-lat_lon_interval, ymin=lon-lat_lon_interval, xmax=lat+lat_lon_interval, ymax=lon+lat_lon_interval, intervals=1, roadType="its", cctvType=1)
name_of_requested = api_result.loc[0]["cctvname"]
if name_of_original == name_of_requested:
print("success")
print(name_of_original)