Detection Camera API Documentation - person-in-hangang/HanRiver GitHub Wiki


Real-time Sensing & Frame Flow Creation Function
- Parameter : camera input Frame
- Return : frame
Import classification name from label s.txt file
- Parameter : labels.txt file
- Return : labels (array)
Detects crossing the line
- Parameter : Bounding box center coordinate
- Return : boolean variable

Send bounding box and image to server
- Parameter : None
- Return : None
Thread checkUpdate = new Thread() {
public void run() {
// 서버 접속
String newip = "210.102.181.248";
int port = 7002;
try {
socket = new Socket(newip, port);
} catch (IOException e1) {
e1.printStackTrace();
}
while(true) {
try {
dos.writeUTF(":1:"+"@" +left +"@"+width+"@"+top+"@"+height+"@");
dos.flush();
dos.write(total, 0, total.length);
dos.flush();
socket.close();
break;
}

Send location information of the Bridge and detection time to the database.
- Parameter : boolean variable
- Return : None