46
61 LAMPIRAN A. Lampiran Source Code Program Pengolahan Citra Digital import cv2 import numpy as np import Vehicle import time import Firebase cnt_up = 0 UpMTR = 0 UpLV = 0 UpHV = 0 # set input video cap = cv2.VideoCapture('tes3.mp4') firebase = firebase.FirebaseApplication('https://database- tugas-akhir-9d8d9-default-rtdb.firebaseio.com/', None) # Capture the properties of VideoCapture to console (mengambil properties video eg. width, height dll) for i in range(19): # print properties video print( i, cap.get(i)) # mengambil width dan heigth video dari properties (value w posisi ke 3, h posisi ke 4) w = cap.get(3) print ('Width', w) h = cap.get(4) print ('Height', h) # luas frame area h*w frameArea = h*w areaTH = frameArea/800 print ('Area Threshold', areaTH) # Input/Output Lines # yang itung kendaraan turun (biru) line_up = int(2*(h/5)) # yang itung kendaraan naik (merah), untuk setting garis line_down = int(3*(h/5)) up_limit = int(1*(h/5)) down_limit = int(4*(h/5)) print ("Red line y:", str(line_down)) print ("Blue line y:", str(line_up)) line_down_color = (255,0,0) line_up_color = (0,0,255) # set height garis pt1 = [0, line_down] # set lebar garis sesuai width video pt2 = [w, line_down] pts_L1 = np.array([pt1,pt2], np.int32)

LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

61

LAMPIRAN

A. Lampiran Source Code Program Pengolahan Citra Digital

import cv2

import numpy as np

import Vehicle

import time

import Firebase

cnt_up = 0

UpMTR = 0

UpLV = 0

UpHV = 0

# set input video

cap = cv2.VideoCapture('tes3.mp4')

firebase = firebase.FirebaseApplication('https://database-

tugas-akhir-9d8d9-default-rtdb.firebaseio.com/', None)

# Capture the properties of VideoCapture to console

(mengambil properties video eg. width, height dll)

for i in range(19):

# print properties video

print( i, cap.get(i))

# mengambil width dan heigth video dari properties (value

w posisi ke 3, h posisi ke 4)

w = cap.get(3)

print ('Width', w)

h = cap.get(4)

print ('Height', h)

# luas frame area h*w

frameArea = h*w

areaTH = frameArea/800

print ('Area Threshold', areaTH)

# Input/Output Lines

# yang itung kendaraan turun (biru)

line_up = int(2*(h/5))

# yang itung kendaraan naik (merah), untuk setting garis

line_down = int(3*(h/5))

up_limit = int(1*(h/5))

down_limit = int(4*(h/5))

print ("Red line y:", str(line_down))

print ("Blue line y:", str(line_up))

line_down_color = (255,0,0)

line_up_color = (0,0,255)

# set height garis

pt1 = [0, line_down]

# set lebar garis sesuai width video

pt2 = [w, line_down]

pts_L1 = np.array([pt1,pt2], np.int32)

Page 2: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

62

pts_L1 = pts_L1.reshape((-1,1,2))

# set height garis

pt3 = [0, line_up]

# set lebar garis sesuai width video

pt4 = [w, line_up]

pts_L2 = np.array([pt3,pt4], np.int32)

pts_L2 = pts_L2.reshape((-1,1,2))

pt5 = [0, up_limit]

pt6 = [w, up_limit]

pts_L3 = np.array([pt5,pt6], np.int32)

pts_L3 = pts_L3.reshape((-1,1,2))

pt7 = [0, down_limit]

pt8 = [w, down_limit]

pts_L4 = np.array([pt7,pt8], np.int32)

pts_L4 = pts_L4.reshape((-1,1,2))

#Create the background subtractor

fgbg = cv2.createBackgroundSubtractorMOG2()

kernelOp = np.ones((3,3), np.uint8)

kernelOp2 = np.ones((5,5), np.uint8)

kernelCl = np.ones((11,11), np.uint8)

#Variables

font = cv2.FONT_HERSHEY_SIMPLEX

vehicles = []

max_p_age = 5

pid = 1

iTime = datetime.now() + timedelta(minutes=testx)

arr = firebase.get('/Data/', time.strftime("%A")) #ambil

semua hari ini

cDate = arr['Date']

UpMTR = arr['Motor']

UpLV = arr['Mobil']

UpHV = arr['TrukBus']

while(cap.isOpened()):

#read a frame

ret, frame = cap.read()

for i in vehicles:

i.age_one() # age every person on frame

#################

# PREPROCESSING #

#################

fgmask = fgbg.apply(frame)

fgmask2 = fgbg.apply(frame)

# Binary to remove shadow

try:

#cv2.imshow('Frame', frame)

#cv2.imshow('Backgroud Subtraction', fgmask)

ret, imBin = cv2.threshold(fgmask, 200, 255,

cv2.THRESH_BINARY)

Page 3: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

63

ret, imBin2 = cv2.threshold(fgmask2, 200, 255,

cv2.THRESH_BINARY)

#Opening (erode->dilate) to remove noise

mask = cv2.morphologyEx(imBin, cv2.MORPH_OPEN,

kernelOp)

mask2 = cv2.morphologyEx(imBin2, cv2.MORPH_OPEN,

kernelOp)

#Closing (dilate->erode) to join white region

mask = cv2.morphologyEx(mask, cv2.MORPH_CLOSE,

kernelCl)

mask2 = cv2.morphologyEx(mask2, cv2.MORPH_CLOSE,

kernelCl)

cv2.imshow('Image Threshold', cv2.resize(fgmask,

(400, 300)))

cv2.imshow('Masked Image', cv2.resize(mask, (400,

300)))

except:

#jika tidak ada lagi frame yang di proses

print('Jumlah')

print ('Total Kendaraan:', cnt_up)

break

##################

## FIND CONTOUR ##

##################

_, contours0, hierarchy = cv2.findContours(mask,

cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)

for cnt in contours0:

# membuat kontur/garis mengikuti objek bergerak

cv2.drawContours(frame, cnt, -1, (0,255,0), 3, 8)

area = cv2.contourArea(cnt)

if area > areaTH:

################

# TRACKING #

################

yTime = datetime.now() +

timedelta(minutes=testx)

if cDate != time.strftime("%Y-%m-%d") :

UpLV = 0

UpMTR = 0

UpHV = 0

cDate = time.strftime("%Y-%m-%d")

M = cv2.moments(cnt)

cx = int(M['m10']/M['m00'])

cy = int(M['m01']/M['m00'])

x,y,w,h = cv2.boundingRect(cnt)

new = True

for i in vehicles:

if abs(x-i.getX()) <= w and abs(y-i.getY())

<= h:

new = False

i.updateCoords(cx,cy)

Page 4: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

64

# jika objek melewati garis biru duluan berarti going up

terdeteksi naik.

if i.going_UP(line_down, line_up) ==

True:

roi = frame[y:y + h, x:x + w]

rectangle = cv2.rectangle(frame,

(x, y), (x + w, y + h), (0, 255, 0), 2)

height = h

width = w

kll = 2 * (height + width)

print ('Height:::', height)

print ('Width:::', width)

print ('Keliling:::', kll)

#posting data pada database

# atur parameter luas rectangle

berdasarkan video

Cjumlah = 0

if (kll < 300) and (kll > 120):

UpMTR += 1

elif (kll < 500) and (kll > 301):

UpLV += 1

elif (kll > 700) and (kll < 1000):

UpHV += 1

data = {

'Date': cDate,

'Mobil': UpLV,

'Motor': UpMTR,

'TrukBus': UpHV

}

firebase.put('/Data/',

time.strftime("%A"), data)

firebase.put('/Data/'+time.strftime("%A"), kendaraan,

Cjumlah)

firebase.put('/Data/'+time.strftime("%A"), 'Date', Ctime)

cnt_up += 1

print ("ID:", i.getId(), 'crossed

going up at', time.strftime("%c"))

break

if i.getState() == '1':

if i.getDir() == 'down' and i.getY() >

down_limit:

i.setDone()

elif i.getDir() == 'up' and i.getY() <

up_limit:

Page 5: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

65

i.setDone()

if i.timedOut():

# Remove from the list person

index = vehicles.index(i)

vehicles.pop(index)

del i

if new == True:

p = Vehicle.MyVehicle(pid,cx,cy,

max_p_age)

vehicles.append(p)

pid += 1

##################

## DRAWING ##

##################

cv2.circle(frame,(cx,cy),5, (0,0,255), -1)

img =

cv2.rectangle(frame,(x,y),(x+w,y+h),(0,255,0),2)

for i in vehicles:

"""

if len(i.getTracks()) >= 2:

pts = np.array(i.getTracks(), np.int32)

pts = pts.reshape((-1,1,2))

frame = cv2.polylines(frame, [pts], False,

i.getRGB())

if i.getId() == 9:

print str(i.getX()), ',', str(i.getY())

"""

cv2.putText(frame, str(i.getId()),

(i.getX(),i.getY()),font,0.3,i.getRGB(),1,cv2.LINE_AA)

###############

# Nama Garis #

###############

MTR_up = 'Up Motor: ' + str(UpMTR)

LV_up = 'Up Mobil: ' + str(UpLV)

HV_up = 'Up Truck/Bus: ' + str(UpHV)

frame = cv2.polylines(frame, [pts_L1], False,

line_down_color, thickness=2)

frame = cv2.polylines(frame, [pts_L2], False,

line_up_color, thickness=2)

frame = cv2.polylines(frame, [pts_L3], False,

(255,255,255), thickness=1)

frame = cv2.polylines(frame, [pts_L4], False,

(255,255,255), thickness=1)

cv2.putText(frame, MTR_up, (10, 40), font, 2, (255,

255, 255), 4, cv2.LINE_AA)

cv2.putText(frame, MTR_up, (10, 40), font, 2, (0, 0,

255), 3, cv2.LINE_AA)

cv2.putText(frame, LV_up, (10, 90), font, 2, (255, 255,

255), 4, cv2.LINE_AA)

cv2.putText(frame, LV_up, (10, 90), font, 2, (0, 0,

255), 3, cv2.LINE_AA)

Page 6: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

66

cv2.putText(frame, HV_up, (10, 140), font, 2, (255,

255, 255), 4, cv2.LINE_AA)

cv2.putText(frame, HV_up, (10, 140), font, 2, (0, 0,

255), 3, cv2.LINE_AA)

cv2.imshow('Frame', cv2.resize(frame, (400, 300)))

#cv2.imshow('Frame', cv2.resize(frame, (1280, 720)))

#cv2.imshow('Backgroud Subtraction', fgmask)

k = cv2.waitKey(10) & 0xff

if k == 27:

break

cap.release()

cv2.destroyAllWindows()

Page 7: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

67

B. Lampiran Source Code Program LED Matrix P10

#include <ESP8266WiFi.h>

#include <WiFiClient.h>

#include <WiFiServer.h>

#include <FirebaseArduino.h>

#include <ArduinoJson.h>

#include <ESP8266HTTPClient.h>

#include <DMDESP.h>

#include <fonts/DejaVuSansBold9.h>

// Set config db

#define FIREBASE_HOST "database-tugas-akhir-9d8d9-default-

rtdb.firebaseio.com"

#define FIREBASE_AUTH

"W8HZU6sopAZ9M56lM93z6ElcXTWOYUIJMr56bL2H"

#define WIFI_SSID "amirshodiq1"

#define WIFI_PASSWORD "amirshodiq1"

////WiFiClient client;

//SETUP DMD

#define DISPLAYS_WIDE 2 // Kolom Panel

#define DISPLAYS_HIGH 1 // Baris Panel

DMDESP Disp(DISPLAYS_WIDE, DISPLAYS_HIGH); // Jumlah

Panel P10 yang digunakan (KOLOM,BARIS)

//global var

static String teks;

//--------------------------------------------------------

--------------

// SETUP

void setup() {

Serial.begin(9600);

// connect ke wifi.

WiFi.begin(WIFI_SSID, WIFI_PASSWORD);

Serial.print("connecting");

while (WiFi.status() != WL_CONNECTED) {

Serial.print(".");

delay(500);

}

Serial.println();

Serial.print("connected: ");

Serial.println(WiFi.localIP());

Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);

// DMDESP Setup

Disp.start(); // Jalankan library DMDESP

Disp.setBrightness(20); // Tingkat kecerahan

Disp.setFont(DejaVuSansBold9); // Tentukan huruf

teks = Firebase.getString("RunningLED/Msg"); //get data

first time

}

Page 8: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

68

//--------------------------------------------------------

--------------

// LOOP

void loop() {

Disp.loop(); // Jalankan Disp loop untuk refresh LED

Disp.drawText(0,0,"ECO"); // Tampilkan teks

TeksJalan(8, 50); // Tampilkan teks berjalan

TeksJalan(posisi y, kecepatan);

}

//--------------------------

// TAMPILKAN SCROLLING TEKS

void TeksJalan(int y, uint8_t kecepatan) {

static uint32_t pM, del;

static uint32_t x;

int width = Disp.width();

Disp.setFont(DejaVuSansBold9);

int fullScroll = Disp.textWidth(teks) + width;

if((millis() - pM) > kecepatan) {

pM = millis();

if (x < fullScroll) {

++x;

} else {

x = 0;

return;

}

Disp.drawText(width - x, y, teks);

if((millis() - del) > 10000) {

del = millis();

teks = Firebase.getString("RunningLED/Msg");

Serial.print(teks);

}

}

}

Page 9: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

69

C. Hasil Pengujian dengan Video

D. Hasil Pengujian dengan Kamera Realtime

Gambar 1 Hasil Pengambilan Data pada Pagi Hari dengan intensitas cahaya

2368 Lux 30.3°C

Gambar 2 Hasil Pengambilan Data pada Siang Hari dengan intensitas cahaya

3096 Lux 34.4°C

Gambar 3 Hasil Pengambilan Data pada Sore Hari dengan intensitas cahaya

Page 10: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

70

Page 11: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

71

E. Sampel Data Pengujian Pembacaan dan Klasifikasi Citra

LOW VEHICLE (Mobil dengan Keliling >301 dan <500)

HIGH VEHICLE (BUS/TRUK dengan keliling >501 dan <1000)

Motor dengan Keliling >150 dan <300

Beberapa contoh error pada sistem dalam mendeteksi objek

Page 12: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

72

F. Rincian data objek yang terdeteksi oleh sistem

No Keliling Terdeteksi

1 334 Mobil

2 338 Mobil

3 174 Motor

4 360 Mobil

5 214 Motor

6 200 Motor

7 224 Motor

8 414 Mobil

9 298 Motor

10 898 Bus/Truk

11 292 Motor

12 532 Mobil

13 200 Motor

14 798 Bus/Truk

15 368 Mobil

16 386 Mobil

17 546 Bus/Truk

18 164 Motor

19 328 Mobil

20 572 Bus/Truk

21 434 Mobil

22 232 Motor

23 360 Mobil

24 450 Mobil

25 422 Mobil

26 210 Motor

27 214 Motor

28 404 Mobil

29 216 Motor

30 390 Mobil

31 352 Mobil

32 378 Mobil

33 384 Mobil

34 676 Bus/Truk

35 382 Mobil

36 394 Mobil

37 222 Motor

38 394 Mobil

39 230 Motor

40 860 Bus/Truk

Page 13: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

73

41 222 Motor

42 434 Mobil

43 414 Mobil

44 404 Mobil

45 326 Mobil

46 438 Mobil

47 348 Mobil

48 548 Bus/Truk

49 376 Mobil

50 404 Mobil

51 216 Motor

52 228 Motor

53 386 Mobil

54 789 Bus/Truk

55 758 Bus/Truk

56 290 Motor

57 184 Motor

58 336 Mobil

59 602 Bus/Truk

60 320 Mobil

61 172 Motor

62 302 Mobil

63 184 Motor

64 352 Mobil

65 362 Mobil

66 722 Bus/Truk

67 272 Motor

68 372 Mobil

69 182 Motor

70 650 Bus/Truk

71 410 Mobil

72 554 Mobil

73 702 Bus/Truk

74 182 Motor

75 184 Motor

76 354 Mobil

77 224 Motor

78 466 Mobil

79 568 Bus/Truk

80 228 Motor

81 526 Bus/Truk

82 338 Mobil

83 436 Mobil

Page 14: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

74

84 342 Mobil

85 212 Motor

86 436 Mobil

87 702 Bus/Truk

88 368 Mobil

89 186 Motor

90 354 Mobil

91 338 Mobil

92 196 Motor

93 208 Motor

94 356 Mobil

95 356 Mobil

96 176 Motor

97 186 Motor

98 194 Motor

99 732 Bus/Truk

100 702 Bus/Truk

101 168 Motor

102 714 Bus/Truk

103 748 Bus/Truk

104 560 Bus/Truk

105 778 Bus/Truk

106 482 Mobil

107 188 Motor

108 334 Mobil

109 326 Mobil

110 338 Mobil

111 344 Mobil

112 200 Motor

113 380 Mobil

114 736 Bus/Truk

115 176 Motor

116 658 Bus/Truk

117 360 Mobil

118 768 Bus/Truk

119 178 Motor

120 608 Bus/Truk

121 220 Motor

122 274 Motor

123 326 Mobil

124 679 Bus/Truk

125 416 Mobil

126 646 Bus/Truk

Page 15: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

75

127 789 Bus/Truk

128 546 Bus/Truk

129 392 Mobil

130 176 Motor

131 202 Motor

132 430 Mobil

133 180 Motor

134 322 Mobil

135 312 Mobil

136 352 Mobil

137 294 Motor

138 342 Mobil

139 326 Mobil

140 558 Bus/Truk

141 190 Motor

142 180 Motor

143 194 Motor

144 186 Motor

145 170 Motor

146 318 Mobil

147 794 Bus/Truk

148 310 Mobil

149 374 Mobil

150 348 Mobil

151 342 Mobil

152 352 Mobil

153 304 Mobil

154 478 Mobil

155 384 Mobil

156 182 Motor

157 702 Bus/Truk

158 472 Mobil

159 330 Mobil

160 190 Motor

161 182 Motor

162 192 Motor

163 348 Mobil

164 176 Motor

165 484 Mobil

166 288 Motor

167 334 Mobil

168 186 Motor

169 606 Bus/Truk

Page 16: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

76

170 384 Mobil

171 312 Mobil

172 712 Bus/Truk

173 770 Bus/Truk

174 606 Bus/Truk

175 688 Bus/Truk

176 352 Mobil

177 350 Mobil

178 362 Mobil

179 362 Mobil

180 464 Mobil

181 132 Motor

182 276 Motor

183 240 Motor

184 336 Mobil

185 340 Mobil

186 280 Motor

187 180 Motor

188 440 Mobil

189 734 Bus/Truk

190 744 Bus/Truk

191 388 Mobil

192 330 Mobil

193 178 Motor

194 288 Motor

195 738 Bus/Truk

196 228 Motor

197 280 Motor

198 306 Mobil

199 178 Motor

200 356 Mobil

201 306 Mobil

202 330 Mobil

203 186 Motor

204 718 Bus/Truk

205 604 Bus/Truk

206 422 Mobil

207 686 Bus/Truk

208 310 Mobil

209 178 Motor

210 418 Mobil

211 710 Bus/Truk

212 574 Bus/Truk

Page 17: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

77

213 332 Mobil

214 218 Motor

215 586 Bus/Truk

216 332 Mobil

217 350 Mobil

218 194 Motor

219 198 Motor

220 206 Motor

221 200 Motor

222 680 Bus/Truk

223 512 Bus/Truk

224 256 Motor

225 344 Mobil

226 384 Mobil

227 218 Motor

228 660 Bus/Truk

229 362 Mobil

230 388 Mobil

231 236 Motor

232 612 Bus/Truk

233 372 Mobil

234 342 Mobil

235 776 Bus/Truk

236 616 Bus/Truk

237 368 Mobil

238 230 Motor

239 370 Mobil

240 444 Mobil

241 440 Mobil

242 250 Motor

243 506 Bus/Truk

244 328 Mobil

245 420 Mobil

246 588 Bus/Truk

247 364 Mobil

248 158 Motor

249 168 Motor

250 392 Mobil

251 654 Bus/Truk

252 172 Motor

253 348 Mobil

254 186 Motor

255 322 Mobil

Page 18: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

78

256 126 Motor

257 176 Motor

258 174 Motor

259 642 Bus/Truk

260 182 Motor

261 348 Mobil

262 344 Mobil

263 218 Motor

264 178 Motor

265 666 Bus/Truk

266 374 Mobil

267 208 Motor

268 416 Mobil

269 336 Mobil

270 389 Mobil

271 156 Motor

272 320 Mobil

273 224 Motor

274 268 Motor

275 262 Motor

276 434 Mobil

277 296 Motor

278 748 Bus/Truk

279 292 Motor

280 578 Bus/Truk

281 218 Motor

282 758 Bus/Truk

283 348 Mobil

284 386 Mobil

285 564 Bus/Truk

286 178 Motor

287 346 Mobil

288 568 Bus/Truk

289 414 Mobil

290 212 Motor

291 356 Mobil

292 490 Mobil

293 426 Mobil

294 219 Motor

295 214 Motor

296 468 Mobil

297 218 Motor

298 376 Mobil

Page 19: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

79

299 342 Mobil

300 356 Mobil

301 234 Motor

302 368 Mobil

303 434 Mobil

304 198 Motor

305 689 Bus/Truk

306 348 Mobil

307 324 Mobil

308 358 Mobil

309 346 Mobil

310 210 Motor

311 288 Motor

312 234 Motor

313 342 Mobil

314 356 Mobil

315 346 Mobil

316 212 Motor

317 314 Mobil

318 506 Bus/Truk

319 212 Motor

320 218 Motor

321 348 Mobil

322 232 Motor

323 404 Mobil

324 389 Mobil

325 198 Motor

326 212 Motor

327 256 Motor

328 278 Motor

329 444 Mobil

330 434 Mobil

331 398 Mobil

332 659 Bus/Truk

333 434 Mobil

334 329 Mobil

335 219 Motor

336 258 Motor

337 398 Mobil

338 462 Mobil

339 454 Mobil

340 414 Mobil

341 418 Mobil

Page 20: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

80

342 214 Motor

343 278 Motor

344 590 Bus/Truk

345 746 Bus/Truk

346 214 Motor

347 124 Motor

348 386 Mobil

349 412 Mobil

350 378 Mobil

351 219 Motor

352 698 Bus/Truk

353 214 Motor

354 218 Motor

355 388 Mobil

356 376 Mobil

357 356 Mobil

358 220 Motor

359 476 Mobil

360 216 Motor

361 212 Motor

362 458 Mobil

363 264 Motor

364 356 Mobil

365 786 Bus/Truk

366 756 Bus/Truk

367 242 Motor

368 168 Motor

369 359 Mobil

370 678 Bus/Truk

371 198 Motor

372 629 Bus/Truk

373 419 Mobil

374 342 Mobil

375 432 Mobil

376 616 Bus/Truk

377 264 Motor

378 212 Motor

379 264 Motor

380 159 Motor

381 429 Mobil

382 346 Mobil

383 188 Motor

384 716 Bus/Truk

Page 21: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

81

385 198 Motor

386 342 Mobil

387 206 Motor

388 266 Motor

389 266 Motor

390 414 Mobil

391 424 Mobil

392 396 Mobil

393 340 Motor

394 424 Motor

395 216 Motor

396 578 Mobil

397 418 Mobil

398 368 Mobil

399 178 Motor

400 654 Bus/Truk

401 706 Bus/Truk

402 648 Bus/Truk

403 296 Motor

404 212 Motor

405 244 Motor

406 418 Mobil

407 304 Mobil

408 296 Motor

409 244 Motor

410 398 Mobil

411 370 Mobil

412 366 Mobil

413 378 Mobil

414 302 Mobil

415 418 Mobil

416 296 Motor

417 654 Bus/Truk

418 362 Mobil

419 212 Motor

420 346 Mobil

421 648 Bus/Truk

422 370 Mobil

423 424 Mobil

424 404 Mobil

425 244 Motor

426 366 Mobil

427 348 Mobil

Page 22: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

82

428 384 Mobil

429 336 Mobil

430 216 Motor

431 198 Motor

432 752 Bus/Truk

433 378 Mobil

434 652 Bus/Truk

435 258 Motor

436 248 Motor

437 346 Mobil

438 350 Mobil

439 248 Motor

440 346 Mobil

441 212 Motor

442 316 Mobil

443 350 Mobil

444 386 Mobil

445 236 Motor

446 174 Motor

447 360 Mobil

448 376 Mobil

449 342 Mobil

450 298 Motor

451 414 Mobil

452 224 Motor

453 334 Mobil

454 368 Mobil

455 438 Mobil

456 266 Motor

457 374 Mobil

458 360 Mobil

459 402 Mobil

460 244 Motor

461 366 Mobil

462 742 Bus/Truk

463 714 Bus/Truk

464 264 Motor

465 212 Motor

466 344 Mobil

467 748 Bus/Truk

468 242 Motor

469 362 Mobil

470 578 Bus/Truk

Page 23: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

83

471 362 Mobil

472 588 Bus/Truk

473 362 Mobil

474 244 Motor

475 378 Mobil

476 212 Motor

477 362 Mobil

478 758 Bus/Truk

479 308 Mobil

480 302 Mobil

481 296 Motor

482 244 Motor

483 248 Motor

484 268 Motor

485 678 Bus/Truk

486 296 Motor

487 404 Mobil

488 402 Mobil

489 196 Motor

490 384 Mobil

491 244 Motor

492 202 Motor

493 212 Motor

494 418 Mobil

495 428 Mobil

496 366 Mobil

497 362 Mobil

498 198 Motor

499 418 Mobil

500 302 Mobil

501 362 Mobil

502 242 Motor

503 362 Mobil

504 356 Mobil

505 438 Mobil

506 374 Mobil

507 296 Motor

508 236 Motor

509 244 Motor

510 304 Mobil

511 402 Mobil

512 244 Motor

513 378 Mobil

Page 24: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

84

514 336 Mobil

515 362 Mobil

516 298 Motor

517 418 Mobil

518 404 Mobil

519 248 Motor

520 354 Mobil

521 210 Motor

522 424 Mobil

523 224 Motor

524 196 Motor

525 340 Mobil

526 382 Mobil

527 340 Mobil

528 382 Mobil

529 358 Mobil

530 234 Motor

531 214 Motor

532 382 Mobil

533 374 Mobil

534 232 Motor

535 374 Mobil

536 340 Mobil

537 232 Motor

538 382 Mobil

539 374 Mobil

540 342 Mobil

541 396 Mobil

542 224 Motor

543 340 Mobil

544 232 Motor

545 234 Motor

546 382 Mobil

547 470 Mobil

548 214 Motor

549 232 Motor

550 374 Mobil

551 358 Mobil

552 340 Mobil

553 470 Mobil

554 212 Motor

555 232 Motor

556 382 Mobil

Page 25: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

85

557 424 Mobil

558 388 Mobil

559 196 Motor

560 396 Mobil

561 388 Mobil

562 342 Mobil

563 340 Mobil

564 232 Motor

565 382 Mobil

566 652 Bus/Truk

567 214 Motor

568 212 Motor

569 374 Mobil

570 468 Mobil

571 470 Mobil

572 340 Mobil

573 382 Mobil

574 196 Motor

575 342 Mobil

576 396 Mobil

577 470 Mobil

578 234 Motor

579 212 Motor

580 374 Mobil

581 358 Mobil

582 232 Motor

583 382 Mobil

584 396 Mobil

585 388 Mobil

586 424 Mobil

587 396 Mobil

588 388 Mobil

589 340 Mobil

590 304 Mobil

591 244 Motor

592 308 Mobil

593 418 Mobil

594 244 Motor

595 394 Mobil

596 368 Mobil

597 418 Mobil

598 212 Motor

599 244 Motor

Page 26: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

86

600 296 Motor

601 258 Motor

602 350 Mobil

603 212 Motor

604 350 Mobil

605 386 Mobil

606 354 Mobil

607 258 Motor

608 346 Mobil

609 354 Mobil

610 258 Motor

611 386 Mobil

612 360 Mobil

613 404 Mobil

614 244 Motor

615 404 Mobil

616 284 Motor

617 232 Motor

618 412 Mobil

619 210 Motor

620 652 Bus/Truk

621 396 Mobil

622 382 Mobil

623 374 Mobil

624 234 Motor

625 424 Mobil

626 340 Mobil

627 234 Motor

628 224 Motor

629 358 Mobil

630 412 Mobil

631 374 Mobil

632 340 Mobil

633 196 Motor

634 224 Motor

635 388 Mobil

636 232 Motor

637 412 Mobil

638 234 Motor

639 340 Mobil

640 342 Mobil

641 224 Motor

642 382 Mobil

Page 27: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

87

643 212 Motor

644 382 Mobil

645 374 Mobil

646 232 Motor

647 382 Mobil

648 358 Mobil

649 374 Mobil

650 214 Motor

651 196 Motor

652 232 Motor

653 196 Motor

654 358 Mobil

655 212 Motor

656 382 Mobil

657 470 Mobil

658 234 Motor

659 232 Motor

660 196 Motor

661 340 Mobil

662 412 Mobil

663 212 Motor

664 232 Motor

665 358 Mobil

666 224 Motor

667 212 Motor

668 232 Motor

669 214 Motor

670 210 Motor

671 196 Motor

672 424 Mobil

673 340 Mobil

674 358 Mobil

675 382 Mobil

676 374 Mobil

677 232 Motor

678 340 Mobil

679 396 Mobil

680 342 Mobil

681 204 Motor

682 206 Motor

683 470 Mobil

684 206 Motor

685 204 Motor

Page 28: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

88

686 232 Motor

687 424 Mobil

688 234 Motor

689 652 Bus/Truk

690 704 Bus/Truk

691 340 Mobil

692 374 Mobil

693 382 Mobil

694 374 Mobil

695 706 Bus/Truk

696 424 Mobil

697 382 Mobil

698 204 Motor

699 212 Motor

700 374 Mobil

701 424 Mobil

702 702 Bus/Truk

703 388 Mobil

704 396 Mobil

705 232 Motor

706 388 Mobil

707 374 Mobil

708 382 Mobil

709 234 Motor

710 358 Mobil

711 340 Mobil

712 652 Bus/Truk

713 788 Bus/Truk

714 396 Mobil

715 342 Mobil

716 214 Motor

717 196 Motor

718 388 Mobil

719 382 Mobil

720 374 Mobil

721 232 Motor

722 214 Motor

723 210 Motor

724 382 Mobil

725 424 Mobil

726 224 Motor

727 210 Motor

728 388 Mobil

Page 29: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

89

729 340 Mobil

730 234 Motor

731 382 Mobil

732 214 Motor

733 374 Mobil

734 374 Mobil

735 386 Mobil

736 212 Motor

737 210 Motor

738 568 Bus/Truk

739 244 Motor

740 388 Mobil

741 286 Motor

742 340 Mobil

743 704 Bus/Truk

744 386 Mobil

745 232 Motor

746 382 Mobil

747 414 Mobil

748 370 Mobil

749 424 Mobil

750 386 Mobil

751 212 Motor

752 344 Mobil

753 244 Motor

754 386 Mobil

755 432 Mobil

756 704 Bus/Truk

757 698 Bus/Truk

758 342 Mobil

759 424 Mobil

760 214 Motor

761 358 Mobil

762 234 Motor

763 374 Mobil

764 212 Motor

765 232 Motor

766 288 Mobil

767 374 Mobil

768 224 Motor

769 214 Motor

770 358 Mobil

771 340 Mobil

Page 30: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

90

772 196 Motor

773 388 Mobil

774 210 Motor

775 232 Motor

776 652 Bus/Truk

777 424 Mobil

778 224 Motor

779 388 Mobil

780 206 Motor

781 340 Mobil

782 232 Motor

783 412 Mobil

784 214 Motor

785 374 Mobil

786 206 Motor

787 470 Mobil

788 204 Motor

789 196 Motor

790 358 Mobil

791 232 Motor

792 382 Mobil

793 224 Motor

794 382 Mobil

795 358 Mobil

796 412 Mobil

797 704 Bus/Truk

798 768 Bus/Truk

799 212 Motor

800 412 Mobil

801 340 Mobil

802 296 Motor

803 362 Mobil

804 296 Motor

805 212 Motor

806 402 Mobil

807 394 Mobil

808 224 Motor

809 234 Motor

810 362 Mobil

811 244 Motor

812 212 Motor

813 394 Mobil

814 366 Mobil

Page 31: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

91

815 196 Motor

816 424 Mobil

817 356 Mobil

818 404 Mobil

819 350 Mobil

820 204 Motor

821 196 Motor

822 654 Bus/Truk

823 204 Motor

824 706 Bus/Truk

825 394 Mobil

826 244 Motor

827 304 Mobil

828 212 Motor

829 402 Mobil

830 234 Motor

831 308 Mobil

832 296 Motor

833 396 Mobil

834 234 Motor

835 370 Mobil

836 362 Mobil

837 204 Motor

838 368 Mobil

839 354 Mobil

840 204 Motor

841 418 Mobil

842 244 Motor

843 212 Motor

844 244 Motor

845 394 Mobil

846 212 Motor

847 402 Mobil

848 258 Motor

849 368 Mobil

850 354 Mobil

851 258 Motor

852 350 Mobil

853 244 Motor

854 402 Mobil

855 374 Mobil

856 244 Motor

857 404 Mobil

Page 32: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

92

858 384 Mobil

859 212 Motor

860 302 Mobil

861 308 Mobil

862 296 Motor

863 204 Motor

864 244 Motor

865 302 Mobil

866 258 Motor

867 258 Motor

868 234 Motor

869 212 Motor

870 244 Motor

871 418 Mobil

872 368 Mobil

873 204 Motor

Page 33: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

93

G. Rincian Data Pendeteksian Objek Bergerak

TP TN FP FN prec Rec F Acc

2140 44549 1096 2615 66.13 45.01 53.56 92.64

2686 45813 463 1438 85.30 65.13 73.86 96.23

2881 95 101 47323 96.61 5.74 10.83 5.90

2425 45484 746 1745 76.47 58.15 66.07 95.06

2734 44881 645 2140 80.91 56.09 66.25 94.47

2470 45584 915 1431 72.97 63.32 67.80 95.35

2799 45816 947 838 74.72 76.96 75.82 96.46

3114 45597 629 1060 83.20 74.60 78.67 96.65

3371 45037 1313 679 71.97 83.23 77.19 96.05

3915 44090 986 1409 79.88 73.53 76.58 95.25

3614 44928 1161 697 75.69 83.83 79.55 96.31

3945 44271 943 1241 80.71 76.07 78.32 95.67

3924 44098 929 1449 80.86 73.03 76.75 95.28

3709 44245 1597 849 69.90 81.37 75.20 95.15

4057 43700 1382 1261 74.59 76.29 75.43 94.76

3562 43771 1669 1398 68.09 71.81 69.90 93.91

3593 44324 1468 1015 70.99 77.97 74.32 95.07

2890 44998 2033 479 58.70 85.78 69.71 95.02

3234 44865 1637 664 66.39 82.97 73.76 95.43

2765 45040 1878 717 59.55 79.41 68.06 94.85

3128 44247 1312 1713 70.45 64.61 67.41 94.00

2346 45423 2006 625 53.91 78.96 64.07 94.78

2747 45788 1235 630 68.99 81.34 74.66 96.30

2545 45732 1575 548 61.77 82.28 70.57 95.79

2781 45691 1181 747 70.19 78.83 74.26 96.17

2516 45832 1211 841 67.51 74.95 71.03 95.93

2616 45527 1228 1029 68.05 71.77 69.86 95.52

2186 46280 1372 562 61.44 79.55 69.33 96.16

2517 46281 1001 601 71.55 80.72 75.86 96.82

2105 46303 1522 470 58.04 81.75 67.88 96.05

2177 46186 1384 653 61.13 76.93 68.13 95.96

2142 46396 1261 601 62.94 78.09 69.70 96.31

2120 46666 1087 527 66.11 80.09 72.43 96.80

3091 89 129 47091 95.99 6.16 11.58 6.31

3016 97 136 47151 95.69 6.01 11.31 6.18

1649 46928 1467 356 52.92 82.24 64.40 96.38

2037 46653 933 777 68.59 72.39 70.44 96.61

1738 46956 1309 397 57.04 81.41 67.08 96.62

2101 46615 1014 670 67.45 75.82 71.39 96.66

1803 46974 1131 492 61.45 78.56 68.96 96.78

Page 34: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

94

2002 46733 931 734 68.26 73.17 70.63 96.70

1529 47151 1319 401 53.69 79.22 64.00 96.59

1815 46464 1427 694 55.98 72.34 63.12 95.79

2290 46305 1196 609 65.69 78.99 71.73 96.42

2789 45691 1082 838 72.05 76.90 74.39 96.19

2777 45567 1256 800 68.86 77.63 72.98 95.92

2943 45333 1349 775 68.57 79.16 73.48 95.79

3153 44926 1489 832 67.92 79.12 73.10 95.39

3182 44506 1816 896 63.67 78.03 70.12 94.62

3264 44532 2007 597 61.92 84.54 71.48 94.83

3890 43808 1506 1196 72.09 76.48 74.22 94.64

3728 43906 1701 1065 68.67 77.78 72.94 94.51

3334 43936 2208 922 60.16 78.34 68.05 93.79

3555 43649 2113 1083 62.72 76.65 68.99 93.66

3642 43834 1829 1095 66.57 76.88 71.36 94.20

3536 44112 1721 1031 67.26 77.43 71.99 94.54

2966 44494 1811 1129 62.09 72.43 66.86 94.17

3123 44730 1188 1359 72.44 69.68 71.03 94.95

3935 261 237 45967 94.32 7.89 14.55 8.33

3661 289 204 46246 94.72 7.34 13.62 7.84

2757 45773 1043 827 72.55 76.93 74.67 96.29

2772 45519 665 1444 80.65 65.75 72.44 95.82

2560 45770 844 1226 75.21 67.62 71.21 95.89

2714 45826 681 1179 79.94 69.71 74.48 96.31

2412 46179 831 978 74.38 71.15 72.73 96.41

2502 46285 762 851 76.65 74.62 75.62 96.80

2202 46427 974 797 69.33 73.42 71.32 96.49

2469 46285 745 901 76.82 73.26 75.00 96.73

2175 46493 880 852 71.19 71.85 71.52 96.56

2505 45860 689 1346 78.43 65.05 71.11 95.96

2616 46022 930 832 73.77 75.87 74.81 96.50

3120 45326 723 1231 81.19 71.71 76.15 96.12

3112 45251 1102 935 73.85 76.90 75.34 95.96

3541 44599 592 1668 85.68 67.98 75.81 95.52

3532 44516 808 1544 81.38 69.58 75.02 95.33

3951 44326 782 1341 83.48 74.66 78.82 95.79

3520 44945 1266 669 73.55 84.03 78.44 96.16

3839 44307 1244 1010 75.53 79.17 77.31 95.53

4865 163 182 45190 96.39 9.72 17.66 9.98

3228 44611 1995 566 61.80 85.08 71.60 94.92

3433 44345 1753 869 66.20 79.80 72.37 94.80

3161 44768 1933 538 62.05 85.46 71.90 95.10

3641 43919 1261 1579 74.28 69.75 71.94 94.37

Page 35: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

95

4365 304 329 45402 92.99 8.77 16.03 9.26

4368 294 270 45468 94.18 8.76 16.04 9.25

4381 19 53 45947 98.80 8.70 16.00 8.73

2874 45280 1263 983 69.47 74.51 71.90 95.54

2596 45749 1373 682 65.41 79.19 71.64 95.92

2595 46008 1189 608 68.58 81.02 74.28 96.43

2776 45799 925 900 75.01 75.52 75.26 96.38

2309 46104 1348 639 63.14 78.32 69.92 96.06

2779 45991 804 826 77.56 77.09 77.32 96.77

2321 46422 1136 521 67.14 81.67 73.69 96.71

2374 46168 1095 763 68.43 75.68 71.87 96.31

2086 46504 1384 426 60.12 83.04 69.74 96.41

2293 46295 1054 758 68.51 75.16 71.68 96.40

2482 45890 804 1224 75.53 66.97 71.00 95.98

2274 46532 790 804 74.22 73.88 74.05 96.84

2204 46807 913 476 70.71 82.24 76.04 97.24

2347 46460 759 834 75.56 73.78 74.66 96.84

1966 46919 1126 389 63.58 83.48 72.19 96.99

2089 46767 908 636 69.70 76.66 73.02 96.94

2171 46547 879 803 71.18 73.00 72.08 96.66

1846 46953 1139 462 61.84 79.98 69.75 96.82

1920 47022 986 472 66.07 80.27 72.48 97.11

1897 46832 1003 668 65.41 73.96 69.42 96.68

1936 46990 966 508 66.71 79.21 72.43 97.08

1828 47201 985 386 64.98 82.57 72.73 97.28

1724 47230 1104 342 60.96 83.45 70.45 97.13

1629 47301 1112 358 59.43 81.98 68.91 97.08

1772 47280 914 434 65.97 80.33 72.44 97.33

1682 47581 698 439 70.67 79.30 74.74 97.74

1766 47647 627 360 73.80 83.07 78.16 98.04

1635 47579 738 448 68.90 78.49 73.38 97.65

1566 47724 787 323 66.55 82.90 73.83 97.80

1605 47701 676 418 70.36 79.34 74.58 97.83

1523 47832 716 329 68.02 82.24 74.46 97.93

1607 47756 614 423 72.35 79.16 75.61 97.94

1563 47743 517 577 75.14 73.04 74.08 97.83

1598 47715 354 733 81.86 68.55 74.62 97.84

1542 47739 395 724 79.61 68.05 73.38 97.78

1471 47881 546 502 72.93 74.56 73.73 97.92

1565 47854 378 603 80.55 72.19 76.14 98.05

1544 47899 403 554 79.30 73.59 76.34 98.10

1501 48044 398 457 79.04 76.66 77.83 98.30

1465 47861 573 501 71.88 74.52 73.18 97.87

Page 36: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

96

1422 47855 602 521 70.26 73.19 71.69 97.77

1342 47942 678 438 66.44 75.39 70.63 97.79

1619 47590 755 436 68.20 78.78 73.11 97.64

1945 47106 846 503 69.69 79.45 74.25 97.32

2392 46432 1014 562 70.23 80.97 75.22 96.87

2746 46111 957 586 74.16 82.41 78.07 96.94

2905 45817 1148 530 71.68 84.57 77.59 96.67

3119 45617 1022 642 75.32 82.93 78.94 96.70

3307 45293 1108 692 74.90 82.70 78.61 96.43

3538 45154 939 769 79.03 82.15 80.56 96.61

3856 44672 922 950 80.70 80.23 80.47 96.29

3878 44700 981 841 79.81 82.18 80.98 96.38

3564 45067 1391 378 71.93 90.41 80.12 96.49

3382 44811 1608 599 67.78 84.95 75.40 95.62

3465 45174 1305 456 72.64 88.37 79.74 96.51

3117 45361 1416 506 68.76 86.03 76.43 96.19

3008 45601 1351 440 69.01 87.24 77.06 96.45

2903 45779 1195 523 70.84 84.73 77.17 96.59

2806 45976 1059 559 72.60 83.39 77.62 96.79

2789 45961 1049 601 72.67 82.27 77.17 96.73

2971 45642 1217 570 70.94 83.90 76.88 96.45

3049 45589 1280 482 70.43 86.35 77.58 96.50

3486 45122 1222 570 74.04 85.95 79.55 96.44

3696 44899 1223 582 75.14 86.40 80.37 96.42

4078 44419 981 922 80.61 81.56 81.08 96.22

3928 44648 1217 607 76.35 86.62 81.16 96.38

4311 43991 1286 812 77.02 84.15 80.43 95.84

4224 44219 1313 644 76.29 86.77 81.19 96.12

4484 43950 1251 715 78.19 86.25 82.02 96.10

4389 43969 1635 407 72.86 91.51 81.13 95.95

4743 43419 1569 669 75.14 87.64 80.91 95.56

4245 43427 2242 486 65.44 89.73 75.68 94.59

4646 43156 1690 908 73.33 83.65 78.15 94.85

4169 43630 1947 654 68.17 86.44 76.22 94.84

4275 43644 1573 908 73.10 82.48 77.51 95.08

3644 44177 1831 748 66.56 82.97 73.86 94.88

3789 44286 1574 751 70.65 83.46 76.52 95.39

3527 44244 1680 949 67.74 78.80 72.85 94.78

3526 44431 1467 976 70.62 78.32 74.27 95.15

2933 45259 1782 426 62.21 87.32 72.65 95.62

2977 44965 1755 703 62.91 80.90 70.78 95.12

2800 45222 1729 649 61.82 81.18 70.19 95.28

3064 45043 1335 958 69.65 76.18 72.77 95.45

Page 37: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

97

2735 45332 1491 842 64.72 76.46 70.10 95.37

2801 45285 1451 863 65.87 76.45 70.77 95.41

2999 45084 1650 667 64.51 81.81 72.13 95.40

3633 44531 1335 901 73.13 80.13 76.47 95.56

3902 44101 1589 808 71.06 82.85 76.50 95.24

4334 43472 1576 1018 73.33 80.98 76.97 94.85

4276 43576 1809 739 70.27 85.26 77.05 94.94

4700 43036 1816 848 72.13 84.72 77.92 94.71

4919 42831 1793 857 73.29 85.16 78.78 94.74

5135 42435 1812 1018 73.92 83.46 78.40 94.38

5359 42366 1796 879 74.90 85.91 80.03 94.69

4793 42330 2545 732 65.32 86.75 74.52 93.50

4498 42565 2661 676 62.83 86.93 72.94 93.38

4529 42615 2444 812 64.95 84.80 73.56 93.54

4363 43126 2036 875 68.18 83.30 74.98 94.22

3848 43549 2085 918 64.86 80.74 71.93 94.04

3688 44161 1635 916 69.28 80.10 74.30 94.94

3604 44511 1451 834 71.30 81.21 75.93 95.47

3338 44693 1441 928 69.85 78.25 73.81 95.30

3295 44691 1233 1181 72.77 73.61 73.19 95.21

3077 44722 1198 1403 71.98 68.68 70.29 94.84

2989 45051 1106 1254 72.99 70.45 71.70 95.32

2668 45619 1339 774 66.58 77.51 71.63 95.81

2704 45666 1163 867 69.93 75.72 72.71 95.97

2397 45899 1457 647 62.20 78.75 69.50 95.83

2353 45764 1427 856 62.25 73.33 67.33 95.47

2504 45678 1080 1138 69.87 68.75 69.31 95.60

2432 45520 1024 1424 70.37 63.07 66.52 95.14

2447 45669 889 1395 73.35 63.69 68.18 95.47

2178 46319 1205 698 64.38 75.73 69.60 96.22

1874 46553 1482 491 55.84 79.24 65.51 96.09

1983 46450 1300 667 60.40 74.83 66.85 96.10

1947 46669 1156 628 62.75 75.61 68.58 96.46

1826 46758 1221 595 59.93 75.42 66.79 96.40

1812 46833 1059 696 63.11 72.25 67.37 96.52

2066 46581 848 905 70.90 69.54 70.21 96.52

2047 46619 764 970 72.82 67.85 70.25 96.56

2176 46456 657 1111 76.81 66.20 71.11 96.49

2716 45885 148 1651 94.83 62.19 75.12 96.43

2698 45990 154 1558 94.60 63.39 75.91 96.60

2664 45991 142 1603 94.94 62.43 75.33 96.54

2623 45984 140 1653 94.93 61.34 74.53 96.44

2497 46086 137 1680 94.80 59.78 73.32 96.39

Page 38: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

98

2457 45988 130 1825 94.97 57.38 71.54 96.12

2480 46206 156 1558 94.08 61.42 74.32 96.60

2382 46397 117 1504 95.32 61.30 74.61 96.78

2363 46421 113 1503 95.44 61.12 74.52 96.79

2345 46307 136 1612 94.52 59.26 72.85 96.53

2306 46227 69 1798 97.09 56.19 71.18 96.30

2331 46376 117 1576 95.22 59.66 73.36 96.64

2355 46420 110 1515 95.54 60.85 74.35 96.78

2295 46568 113 1424 95.31 61.71 74.91 96.95

2257 46706 125 1312 94.75 63.24 75.85 97.15

2199 46306 108 1787 95.32 55.17 69.89 96.24

2221 46366 117 1696 95.00 56.70 71.02 96.40

2158 46609 122 1511 94.65 58.82 72.55 96.76

2186 46579 155 1480 93.38 59.63 72.78 96.76

2101 46508 110 1681 95.02 55.55 70.12 96.45

2096 46593 109 1602 95.06 56.68 71.01 96.61

2124 46491 66 1719 96.99 55.27 70.41 96.46

2074 46627 77 1622 96.42 56.11 70.94 96.63

2102 46503 86 1709 96.07 55.16 70.08 96.44

2098 46696 84 1522 96.15 57.96 72.32 96.81

2100 46649 105 1546 95.24 57.60 71.78 96.72

2093 46656 92 1559 95.79 57.31 71.71 96.72

2056 46753 103 1488 95.23 58.01 72.10 96.84

2010 46688 68 1634 96.73 55.16 70.26 96.62

1975 46966 98 1361 95.27 59.20 73.03 97.11

1976 46976 88 1360 95.74 59.23 73.19 97.13

1963 46871 81 1485 96.04 56.93 71.49 96.89

1927 46957 92 1424 95.44 57.51 71.77 96.99

1946 47023 78 1353 96.15 58.99 73.12 97.16

1965 47103 80 1252 96.09 61.08 74.69 97.36

1898 47057 77 1368 96.10 58.11 72.43 97.13

1826 47192 79 1303 95.85 58.36 72.55 97.26

1825 47178 82 1315 95.70 58.12 72.32 97.23

1786 47049 97 1468 94.85 54.89 69.53 96.89

1765 47237 81 1317 95.61 57.27 71.63 97.23

1814 47212 70 1304 96.28 58.18 72.53 97.27

Page 39: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

99

H. Sampel Perbandingan Frame dalam Mendeteksi Objek

1. Sampel data Ground Thrut, adaptive background subtraction, frame dan hasil

perbandingan TP, TN, FP, FN. Pada Frame ke-3.

Frame 3 GTR Frame 3 ABSR

Frame 3 Frame Frame 3 C-ABS

2. Sampel data Ground Thrut, adaptive background subtraction, frame dan hasil

perbandingan TP, TN, FP, FN. Pada Frame ke-50

Frame 50 GTR Frame 50 ABSR

Page 40: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

100

Frame 50 Frame Frame 50 C-ABS

3. Sampel data Ground Thrut, adaptive background subtraction, frame dan hasil

perbandingan TP, TN, FP, FN. Pada Frame 3

Frame 131 GTR Frame 131 ABSR

Frame 131 Frame Frame 131 C-ABS

Page 41: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

101

I. Rincian Data Pendeteksian Objek Bergerak

Percobaan 1.

Tanggal dan Waktu = 2021-06-01 17:02:48.357849

Tanggal dan Waktu = 2021-06-01 17:02:48.445871

Tanggal dan Waktu = 2021-06-01 17:02:48.527895

Tanggal dan Waktu = 2021-06-01 17:02:48.731944

Tanggal dan Waktu = 2021-06-01 17:02:48.918989

Tanggal dan Waktu = 2021-06-01 17:02:48.926991

Tanggal dan Waktu = 2021-06-01 17:02:49.063028

Tanggal dan Waktu = 2021-06-01 17:02:49.068027

Tanggal dan Waktu = 2021-06-01 17:02:49.168058

Tanggal dan Waktu = 2021-06-01 17:02:49.171056

Tanggal dan Waktu = 2021-06-01 17:02:49.263079

Tanggal dan Waktu = 2021-06-01 17:02:49.265077

Tanggal dan Waktu = 2021-06-01 17:02:49.267077

Tanggal dan Waktu = 2021-06-01 17:02:49.351100

Tanggal dan Waktu = 2021-06-01 17:02:49.353100

Tanggal dan Waktu = 2021-06-01 17:02:49.357103

Tanggal dan Waktu = 2021-06-01 17:02:49.445126

Tanggal dan Waktu = 2021-06-01 17:02:49.447124

Tanggal dan Waktu = 2021-06-01 17:02:49.449126

Tanggal dan Waktu = 2021-06-01 17:02:49.549151

Tanggal dan Waktu = 2021-06-01 17:02:49.553151

Tanggal dan Waktu = 2021-06-01 17:02:49.555152

Tanggal dan Waktu = 2021-06-01 17:02:49.711195

Tanggal dan Waktu = 2021-06-01 17:02:49.715197

Tanggal dan Waktu = 2021-06-01 17:02:49.717197

Tanggal dan Waktu = 2021-06-01 17:02:49.831221

Tanggal dan Waktu = 2021-06-01 17:02:49.833223

Tanggal dan Waktu = 2021-06-01 17:02:49.926246

Tanggal dan Waktu = 2021-06-01 17:02:49.928248

Tanggal dan Waktu = 2021-06-01 17:02:50.022271

Tanggal dan Waktu = 2021-06-01 17:02:50.032276

Tanggal dan Waktu = 2021-06-01 17:02:50.148303

Tanggal dan Waktu = 2021-06-01 17:02:50.150304

Tanggal dan Waktu = 2021-06-01 17:02:50.265335

Tanggal dan Waktu = 2021-06-01 17:02:50.366359

Tanggal dan Waktu = 2021-06-01 17:02:50.479394

Tanggal dan Waktu = 2021-06-01 17:02:50.632429

Tanggal dan Waktu = 2021-06-01 17:02:50.817476

Tanggal dan Waktu = 2021-06-01 17:02:51.010521

Tanggal dan Waktu = 2021-06-01 17:02:51.113548

Tanggal dan Waktu = 2021-06-01 17:02:51.208574

Tanggal dan Waktu = 2021-06-01 17:02:51.302597

Tanggal dan Waktu = 2021-06-01 17:02:51.465634

Tanggal dan Waktu = 2021-06-01 17:02:51.559662

Tanggal dan Waktu = 2021-06-01 17:02:51.666686

Tanggal dan Waktu = 2021-06-01 17:02:51.760713

Tanggal dan Waktu = 2021-06-01 17:02:51.860738

Tanggal dan Waktu = 2021-06-01 17:02:51.951760

Tanggal dan Waktu = 2021-06-01 17:02:52.039785

Tanggal dan Waktu = 2021-06-01 17:02:52.147811

Tanggal dan Waktu = 2021-06-01 17:02:52.244834

Page 42: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

102

Tanggal dan Waktu = 2021-06-01 17:02:52.334860

Tanggal dan Waktu = 2021-06-01 17:02:52.434882

Tanggal dan Waktu = 2021-06-01 17:02:52.528906

Tanggal dan Waktu = 2021-06-01 17:02:52.626931

Tanggal dan Waktu = 2021-06-01 17:02:52.728955

Tanggal dan Waktu = 2021-06-01 17:02:52.819981

Tanggal dan Waktu = 2021-06-01 17:02:52.904000

Tanggal dan Waktu = 2021-06-01 17:02:52.999026

Tanggal dan Waktu = 2021-06-01 17:02:53.092059

Tanggal dan Waktu = 2021-06-01 17:02:53.185069

Tanggal dan Waktu = 2021-06-01 17:02:53.277094

Tanggal dan Waktu = 2021-06-01 17:02:53.386122

Tanggal dan Waktu = 2021-06-01 17:02:53.470144

Percobaan ke-2

Tanggal dan Waktu = 2021-06-01 17:02:27.346937

Tanggal dan Waktu = 2021-06-01 17:02:27.446962

Tanggal dan Waktu = 2021-06-01 17:02:27.714029

Tanggal dan Waktu = 2021-06-01 17:02:27.820059

Tanggal dan Waktu = 2021-06-01 17:02:27.937092

Tanggal dan Waktu = 2021-06-01 17:02:27.943122

Tanggal dan Waktu = 2021-06-01 17:02:27.978120

Tanggal dan Waktu = 2021-06-01 17:02:28.081126

Tanggal dan Waktu = 2021-06-01 17:02:28.084134

Tanggal dan Waktu = 2021-06-01 17:02:28.087126

Tanggal dan Waktu = 2021-06-01 17:02:28.410206

Tanggal dan Waktu = 2021-06-01 17:02:28.416208

Tanggal dan Waktu = 2021-06-01 17:02:28.424210

Tanggal dan Waktu = 2021-06-01 17:02:28.561245

Tanggal dan Waktu = 2021-06-01 17:02:28.566247

Tanggal dan Waktu = 2021-06-01 17:02:28.779307

Tanggal dan Waktu = 2021-06-01 17:02:28.787305

Tanggal dan Waktu = 2021-06-01 17:02:28.913337

Tanggal dan Waktu = 2021-06-01 17:02:28.915335

Tanggal dan Waktu = 2021-06-01 17:02:28.918338

Tanggal dan Waktu = 2021-06-01 17:02:29.048369

Tanggal dan Waktu = 2021-06-01 17:02:29.051371

Tanggal dan Waktu = 2021-06-01 17:02:29.054370

Tanggal dan Waktu = 2021-06-01 17:02:29.249419

Tanggal dan Waktu = 2021-06-01 17:02:29.266427

Tanggal dan Waktu = 2021-06-01 17:02:29.268428

Tanggal dan Waktu = 2021-06-01 17:02:29.271427

Tanggal dan Waktu = 2021-06-01 17:02:29.532494

Tanggal dan Waktu = 2021-06-01 17:02:29.546499

Tanggal dan Waktu = 2021-06-01 17:02:29.552504

Tanggal dan Waktu = 2021-06-01 17:02:29.694533

Tanggal dan Waktu = 2021-06-01 17:02:29.698536

Tanggal dan Waktu = 2021-06-01 17:02:29.702537

Tanggal dan Waktu = 2021-06-01 17:02:29.818564

Tanggal dan Waktu = 2021-06-01 17:02:29.822566

Tanggal dan Waktu = 2021-06-01 17:02:29.825567

Tanggal dan Waktu = 2021-06-01 17:02:29.827567

Tanggal dan Waktu = 2021-06-01 17:02:29.921594

Tanggal dan Waktu = 2021-06-01 17:02:29.926592

Page 43: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

103

Tanggal dan Waktu = 2021-06-01 17:02:30.011613

Tanggal dan Waktu = 2021-06-01 17:02:30.017619

Tanggal dan Waktu = 2021-06-01 17:02:30.187658

Tanggal dan Waktu = 2021-06-01 17:02:30.191661

Tanggal dan Waktu = 2021-06-01 17:02:30.303687

Tanggal dan Waktu = 2021-06-01 17:02:30.307691

Tanggal dan Waktu = 2021-06-01 17:02:30.421720

Tanggal dan Waktu = 2021-06-01 17:02:30.504738

Tanggal dan Waktu = 2021-06-01 17:02:30.671782

Tanggal dan Waktu = 2021-06-01 17:02:30.674784

Tanggal dan Waktu = 2021-06-01 17:02:30.676783

Tanggal dan Waktu = 2021-06-01 17:02:30.769807

Tanggal dan Waktu = 2021-06-01 17:02:30.772807

Tanggal dan Waktu = 2021-06-01 17:02:30.848830

Tanggal dan Waktu = 2021-06-01 17:02:30.850828

Tanggal dan Waktu = 2021-06-01 17:02:30.966857

Tanggal dan Waktu = 2021-06-01 17:02:30.969858

Tanggal dan Waktu = 2021-06-01 17:02:31.065882

Tanggal dan Waktu = 2021-06-01 17:02:31.067883

Tanggal dan Waktu = 2021-06-01 17:02:31.153904

Tanggal dan Waktu = 2021-06-01 17:02:31.157909

Tanggal dan Waktu = 2021-06-01 17:02:31.246928

Tanggal dan Waktu = 2021-06-01 17:02:31.352954

Tanggal dan Waktu = 2021-06-01 17:02:31.356956

Tanggal dan Waktu = 2021-06-01 17:02:31.445980

Tanggal dan Waktu = 2021-06-01 17:02:31.447979

Tanggal dan Waktu = 2021-06-01 17:02:31.532002

Tanggal dan Waktu = 2021-06-01 17:02:31.738052

Tanggal dan Waktu = 2021-06-01 17:02:31.855084

Tanggal dan Waktu = 2021-06-01 17:02:31.992120

Tanggal dan Waktu = 2021-06-01 17:02:32.110162

Tanggal dan Waktu = 2021-06-01 17:02:32.247183

Tanggal dan Waktu = 2021-06-01 17:02:32.342242

Tanggal dan Waktu = 2021-06-01 17:02:32.431231

Tanggal dan Waktu = 2021-06-01 17:02:32.668757

Percobaan ke-3

Tanggal dan Waktu = 2021-06-01 17:03:21.620040

Tanggal dan Waktu = 2021-06-01 17:03:21.707062

Tanggal dan Waktu = 2021-06-01 17:03:21.782081

Tanggal dan Waktu = 2021-06-01 17:03:21.886107

Tanggal dan Waktu = 2021-06-01 17:03:21.975129

Tanggal dan Waktu = 2021-06-01 17:03:22.046147

Tanggal dan Waktu = 2021-06-01 17:03:22.143174

Tanggal dan Waktu = 2021-06-01 17:03:22.225194

Tanggal dan Waktu = 2021-06-01 17:03:22.373235

Tanggal dan Waktu = 2021-06-01 17:03:22.492270

Tanggal dan Waktu = 2021-06-01 17:03:22.627297

Tanggal dan Waktu = 2021-06-01 17:03:22.717318

Tanggal dan Waktu = 2021-06-01 17:03:22.788374

Tanggal dan Waktu = 2021-06-01 17:03:22.913369

Tanggal dan Waktu = 2021-06-01 17:03:23.004392

Tanggal dan Waktu = 2021-06-01 17:03:23.081411

Tanggal dan Waktu = 2021-06-01 17:03:23.167434

Page 44: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

104

Tanggal dan Waktu = 2021-06-01 17:03:23.247454

Tanggal dan Waktu = 2021-06-01 17:03:23.329476

Tanggal dan Waktu = 2021-06-01 17:03:23.521524

Tanggal dan Waktu = 2021-06-01 17:03:23.599544

Tanggal dan Waktu = 2021-06-01 17:03:23.742977

Tanggal dan Waktu = 2021-06-01 17:03:23.813994

Tanggal dan Waktu = 2021-06-01 17:03:23.963088

Tanggal dan Waktu = 2021-06-01 17:03:24.099073

Tanggal dan Waktu = 2021-06-01 17:03:24.256108

Page 45: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

105

J. Beberapa Sampel Gambar pada Pengujian Update Latar Belakang.

Page 46: LAMPIRAN Lampiran Source Code Program Pengolahan Citra Digital

106