• Y
  • List All
  • Feedback
    • This Project
    • All Projects
Profile Account settings Log out
  • Favorite
  • Project
  • All
Loading...
  • Log in
  • Sign up
yjyoon / Altron_Backend star
  • Project homeH
  • CodeC
  • IssueI
  • Pull requestP
  • Review R
  • MilestoneM
  • BoardB
  • Files
  • Commit
  • Branches
Altron_Backendsubfuctiongenerate.py
Download as .zip file
File name
Commit message
Commit date
asset
made ai analysis api and tested it. 25TPS using gunicorn app:app -w 12 -b 127.0.0.1:8080
2023-10-24
database
changed db setting
2023-11-02
model
made ai analysis api and tested it. 25TPS using gunicorn app:app -w 12 -b 127.0.0.1:8080
2023-10-24
subfuction
made ai analysis api and tested it. 25TPS using gunicorn app:app -w 12 -b 127.0.0.1:8080
2023-10-24
weights
Hello Yona
2023-08-21
README.md
Hello Yona
2023-08-21
action.py
CORS
2023-10-31
app.py
CORS
2023-10-31
auth.py
made ai analysis api and tested it. 25TPS using gunicorn app:app -w 12 -b 127.0.0.1:8080
2023-10-24
demonstration.py
made ai analysis api and tested it. 25TPS using gunicorn app:app -w 12 -b 127.0.0.1:8080
2023-10-24
File name
Commit message
Commit date
generate.py
Hello Yona
2023-08-21
image_crop.py
made ai analysis api and tested it. 25TPS using gunicorn app:app -w 12 -b 127.0.0.1:8080
2023-10-24
save_pickle.py
Hello Yona
2023-08-21
yjyoon 2023-08-21 dd75006 Hello Yona UNIX
Raw Open in browser Change history
from haversine import haversine import networkx as nx import geojson with open("D:/takensoft/project2/data/기타 가공/데이터/osm.geojson",encoding='utf-8') as f: gj = geojson.load(f) def swith_xy(tuples): x,y=tuples return (y,x) G = nx.Graph () total_data_num= gj['features'] for j in range(len(total_data_num)): features = gj['features'][j] lines=features['geometry']['coordinates'][0] print(j) for i in range(len(lines)-1): G.add_edge(swith_xy(lines[i]),swith_xy(lines[i+1]),flcass=features['properties']['fclass'],oneway=features['properties']['oneway']) sg = (G.subgraph(c) for c in nx.connected_components(G)) #가져올 수 없는 패키지가 있는 경우 sg = list(sg)[0] for n0, n1 in G.edges (): dist = haversine(n0, n1,unit='m') G.edges [n0,n1][" dist "] = dist df=nx.to_pandas_edgelist(G) li_source=list(df['source']) li_source_x= [] li_source_y=[] for i in li_source: li_source_x.append(str(i[0])) li_source_y.append(str(i[1])) df['source_x']=li_source_x df['source_y']=li_source_y li_target=list(df['target']) li_target_x= [] li_target_y=[] for i in li_target: li_target_x.append(str(i[0])) li_target_y.append(str(i[1])) df['target_x']=li_target_x df['target_y']=li_target_y df=df.drop(['source','target'],axis=1) df=df.reset_index() df.to_csv('node.csv',encoding='euc-kr')

          
        
    
    
Copyright Yona authors & © NAVER Corp. & NAVER LABS Supported by NAVER CLOUD PLATFORM

or
Sign in with github login with Google Sign in with Google
Reset password | Sign up