We will see the code how to do Sobel Filter Image Processing and computer vision.

I have used bird image to process the data.

Copy to Clipboard
Copy to Clipboard
<tf.Tensor: shape=(1, 176, 286, 3), dtype=float32, numpy=
array([[[[ 67.,  81.,  66.],
         [ 67.,  81.,  66.],
         [ 67.,  81.,  66.],
         ...,
         [ 70.,  84.,  69.],
         [ 69.,  83.,  68.],
         [ 69.,  83.,  68.]],

        [[ 67.,  81.,  66.],
         [ 67.,  81.,  66.],
         [ 67.,  81.,  66.],
         ...,
         [ 70.,  84.,  69.],
         [ 69.,  83.,  68.],
         [ 69.,  83.,  68.]],

        [[ 67.,  81.,  66.],
         [ 67.,  81.,  66.],
         [ 67.,  81.,  66.],
         ...,
         [ 70.,  84.,  69.],
         [ 69.,  83.,  68.],
         [ 69.,  83.,  68.]],

        ...,

        [[212., 195., 201.],
         [207., 192., 195.],
         [204., 187., 193.],
         ...,
         [ 57.,  63.,  51.],
         [ 57.,  63.,  51.],
         [ 58.,  64.,  52.]],

        [[211., 192., 196.],
         [205., 189., 190.],
         [202., 183., 187.],
         ...,
         [ 57.,  63.,  51.],
         [ 57.,  63.,  51.],
         [ 58.,  64.,  52.]],

        [[206., 187., 189.],
         [202., 183., 185.],
         [197., 178., 180.],
         ...,
         [ 57.,  63.,  51.],
         [ 57.,  63.,  51.],
         [ 58.,  64.,  52.]]]], dtype=float32)>
Copy to Clipboard