Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 77801a8

Browse files
modified readme
1 parent 1daf17d commit 77801a8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎Color_detection/Readme.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
In this color detection Python project, we are going to build an application through which you can automatically get the name of the color by clicking on them. So for this, we will have a data file that contains the color name and its values. Then we will calculate the distance from each color and find the shortest one.
55

66
# Steps Used
7-
**-Importing required package and load the image.**</br>
7+
- ##Importing required package and load the image.</br>
88
Package used - Pandas and cv2 for OpenCV bindings.</br>
9-
**-Reading the CSV file with pandas.**</br>
10-
**-Set a mouse callback event on a window**</br>
9+
- ##Reading the CSV file with pandas.</br>
10+
- ##Set a mouse callback event on a window</br>
1111
First, we created a window in which the input image will display. Then, we set a callback function which will be called when a mouse event happens.</br>
1212
**draw_function** -
1313
In the function, we check if the event is double-clicked then we calculate and set the r,g,b values along with x,y positions of the mouse.</br>
14-
**-Calculate distance to get color name**</br>
14+
- ##Calculate distance to get color name</br>
1515
d = abs(Red — ithRedColor) + (Green — ithGreenColor) + (Blue — ithBlueColor)</br>
16-
**-Display image on the window**</br>
16+
- ##Display image on the window</br>
1717
Whenever a double click event occurs, it will update the color name and RGB values on the window.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /