text_plain_output_2.png text_plain_output_1.png image_output_1.png
import cv2

import matplotlib.pyplot as plt

import os

import os

path = '/kaggle/input/fruit-images-for-object-detection/train_zip/train'
fileslst = os.listdir(path)
imgs = []
for fle in fileslst:
    if fle.endswith('.jpg'):
        imgs.append(fle)
img = cv2.imread('/kaggle/input/fruit-images-for-object-detection/train_zip/train/' + imgs[1])
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
img = cv2.cvtColor(img, cv2.COLOR_RGB2HSV)
imgedg = []
imgedg0 = cv2.Canny(img[:, :, 0], 120, 200)
imgedg1 = cv2.Canny(img[:, :, 1], 120, 200)
imgedg2 = cv2.Canny(img[:, :, 2], 120, 200)

import numpy as np
import pandas as pd
import os
for dirname, _, filenames in os.walk('/kaggle/input'):
    for filename in filenames:
        print(os.path.join(dirname, filename))