Last active
July 2, 2018 11:51
-
-
Save zaidalyafeai/7c7cb5d8550834eda8e92cfb49fde05e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//load the class names | |
async function loadDict() | |
{ | |
await $.ajax({ | |
url: 'model/class_names.txt', | |
dataType: 'text',}).done(success); | |
} | |
//load the class names | |
function success(data) | |
{ | |
lst = data.split(/\n/) | |
symbols = [] | |
for(var i = 0 ; i < lst.length -1 ; i++) | |
{ | |
let symbol = lst[i] | |
symbols[i] = symbol | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment