Research Article

[Retracted] Vehicle Detection for Vision-Based Intelligent Transportation Systems Using Convolutional Neural Network Algorithm

Algorithm 1

Running tensor flow.
(1)Def image feature (direc):
(2)Model = InceptionV3 (weights = “imagnet,” include_top = false)
(3)  features = [];
(4)  img_name = [];
(5)For i in tqdm (direc);
(6)fname = 1;
(7)img = image.load_img (fname, target_size = (224, 224))
(8)  x = img_to_arrray (img)
(9)x = np.expand_dims (x, axis = 0)
(10)  x = preprocess_input (x)
(11)feat = model.predict (x)
(12)feat = feat.flatten ()
(13)  features.append (feat)
(14)   Img_name.append (i)
(15)Return features, img_name