akshitagupta15june / lane_detection_opencv

The main emphasis of this project is to find the further ways which can be used further to improve the result of lane detection algorithms. Join Discord channel for discussion.
https://discord.gg/CWqgNWbNye
MIT License
37 stars 36 forks source link

image converted into different color spaces #10

Closed ashwanisng closed 4 years ago

ashwanisng commented 4 years ago

image converted into

Anujg935 commented 4 years ago

great work @ashwanisng but I would suggest you to make different functions for all 4 conversions,that take a RGB image as input parameter and return converted image. It will be helpful in latter part of the project. So kindly do the changes and let me know.

ashwanisng commented 4 years ago

great work @ashwanisng but I would suggest you to make different functions for all 4 conversions,that take a RGB image as input parameter and return converted image. It will be helpful in latter part of the project. So kindly do the changes and let me know.

Thanks for reviewing :) did I have to make a function for all like this or make 4 different functions for all?

`def orignal(orignalImage): img_gray = plt.imshow(orignal_rgb[:,:,1], cmap="gray" , interpolation=None) img_hsl = cv.cvtColor(orignal_rgb, cv.COLOR_BGR2HLS) img_hsv = cv.cvtColor(images, cv.COLOR_BGR2HSV) plt.imshow(img_hsl) plt.imshow(orignal_rgb) plt.imshow(img_hsv)

orignal(img_hsv) orignal(img_hsl) orignal(img_gray) orignal(orignal_rgb)`

Anujg935 commented 4 years ago

you have to make 4 different function with relevant names like rgb_to_gray or something like that.

ashwanisng commented 4 years ago

okay I got it thanks @Anujg935

ashwanisng commented 4 years ago

@Anujg935 make some changes. Please review 👍