Skip to content

Commit fe3b9f3

Browse files
authored
Add missing text about openCV functions (#326)
1 parent 96b2f57 commit fe3b9f3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

31_image_classification.ipynb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,8 +659,15 @@
659659
"These methods can also simulate real-world variability, helping models generalize better. \n",
660660
"\n",
661661
"In this notebook, we explore three categories of image transformations: **geometric transformations**, **image filtering**, and **photometric transformations**.\n",
662-
"The following cells contain a series of exercicies designed to help you explore the OpenCV-Python library.\n",
663-
"If you are unfamiliar with a particular method, refer to the [Image Processing in OpenCV](https://docs.opencv.org/4.x/d2/d96/tutorial_py_table_of_contents_imgproc.html) documentation."
662+
"The following cells contain a series of exercicies designed to help you explore the OpenCV-Python library. \n",
663+
"\n",
664+
"If you are unfamiliar with a particular method, refer to the [Image Processing in OpenCV](https://docs.opencv.org/4.x/d2/d96/tutorial_py_table_of_contents_imgproc.html) documentation.\n",
665+
"There you can find the description of the functions needed for [Geometric transformations](https://docs.opencv.org/4.x/da/d6e/tutorial_py_geometric_transformations.html) and [image filtering](https://docs.opencv.org/4.x/d4/d13/tutorial_py_filtering.html).\n",
666+
"Regarding photometric transformations, openCV documentation does not have a specific page for that.\n",
667+
"To adjust brightness and contrast, you can read [Changing the contrast and brightness of an image!](https://docs.opencv.org/4.x/d3/dc1/tutorial_basic_linear_transform.html).\n",
668+
"To adjust saturation, first convert the image to the HSV color space using [`cv2.cvtColor`](https://docs.opencv.org/4.x/d8/d01/group__imgproc__color__conversions.html#gaf86c09fe702ed037c03c2bc603ceab14).\n",
669+
"Then, split the image into Hue, Saturation, and Value channels with [`cv2.split`](https://docs.opencv.org/4.x/df/df2/group__core__hal__interface__split.html).\n",
670+
"Modify the Saturation channel as needed, merge the channels back together using [`cv2.merge`](https://docs.opencv.org/4.x/df/d2e/group__core__hal__interface__merge.html), and finally convert the image back to the RGB color space."
664671
]
665672
},
666673
{

0 commit comments

Comments
 (0)