|
20 | 20 | },
|
21 | 21 | {
|
22 | 22 | "cell_type": "code",
|
23 |
| - "execution_count": 2, |
| 23 | + "execution_count": 4, |
24 | 24 | "metadata": {},
|
25 | 25 | "outputs": [
|
26 | 26 | {
|
|
131 | 131 | },
|
132 | 132 | {
|
133 | 133 | "cell_type": "code",
|
134 |
| - "execution_count": 1, |
| 134 | + "execution_count": 5, |
135 | 135 | "metadata": {},
|
136 |
| - "outputs": [ |
137 |
| - { |
138 |
| - "ename": "NameError", |
139 |
| - "evalue": "name 'cv2' is not defined", |
140 |
| - "output_type": "error", |
141 |
| - "traceback": [ |
142 |
| - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
143 |
| - "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)", |
144 |
| - "\u001b[0;32m/tmp/ipykernel_258104/4170100247.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mcap\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcv2\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mVideoCapture\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0mmin_area\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m100\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0;36m100\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0;32mwhile\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcap\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0misOpened\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0m_\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mframe\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcap\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mread\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
145 |
| - "\u001b[0;31mNameError\u001b[0m: name 'cv2' is not defined" |
146 |
| - ] |
147 |
| - } |
148 |
| - ], |
| 136 | + "outputs": [], |
149 | 137 | "source": [
|
150 | 138 | "cap = cv2.VideoCapture(0)\n",
|
151 | 139 | "min_area = 100*100\n",
|
|
154 | 142 | " _,frame = cap.read()\n",
|
155 | 143 | " hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)\n",
|
156 | 144 | " \n",
|
157 |
| - " upper = np.array([54,134,93])\n", |
| 145 | + " upper = np.array([104,114,112])\n", |
158 | 146 | " lower = np.array([255,255,255])\n",
|
159 | 147 | " \n",
|
160 | 148 | " mask = cv2.inRange(hsv, upper, lower)\n",
|
|
198 | 186 | "metadata": {},
|
199 | 187 | "source": [
|
200 | 188 | "### Future Workshops\n",
|
201 |
| - "We at ***s*** have a strong belief in sharing information and keep learning, adopting, and adapting to newer and advanced concepts. In the future we are working on a new project for you which is solely on further image processing and machine learning. We are glad that you attended this workshop and we hope that you have learnt something from our team.\n", |
| 189 | + "We at ***Sciengit (Ejaarat)*** have a strong belief in sharing information and keep learning, adopting, and adapting to newer and advanced concepts. In the future we are working on a new project for you which is solely on further image processing and machine learning. We are glad that you attended this workshop and we hope that you have learnt something from our team.\n", |
202 | 190 | "\n",
|
203 | 191 | "### The End\n",
|
204 | 192 | "<img src=\"data/theend.gif\" width=\"800\">"
|
|
0 commit comments