Sie sind auf Seite 1von 8

Government College Of

Engineering, Aurangabad.

Project Report:
Digital Electronics
Project Name:
Image Processing in
Python
Class:
SE - Electronics & Telecommunication

Name:
BE17F04F037 – Utkarsh Patni
BE16F04F023 – Rushikesh Kshirsagar
BE17F04F039 – Bunish Raina
BE17F04F029 - Nikhil Nawale
BE17F04F038 – Yashwant Polke
Content :
 Introduction
 Coding
 Software required
 Procedure
 References
Introduction:

In this OpenCV with Python


tutorial, we're going to cover
how to create a sort of filter,
revisiting the bitwise operations,
where we will filter for
specifically a certain colour,
attempting to just show it.
In this project we are going to
create a filter which will be
detecting the specific colour
(here Blue ) .
Coding :-
import cv2
import numpy as np

device = cv2.VideoCapture(0)
while True:
ret, frame = device.read()

hsv = cv2.cvtColor(frame,cv2.COLOR_BGR2HSV)

lower_range = np.array([110,50,50])
upper_range = np.array([130,255,255])
mask = cv2.inRange(hsv, lower_range, upper_range)
#color filtering with bitwise operator
result1 = cv2.bitwise_and(frame, frame, mask=mask)
cv2.imshow("show",mask)
cv2.imshow("result", result1)
cv2.imshow("show1", frame)

if cv2.waitKey(1) == 13:
break

device.release()
cv2.destroyAllWindows()
Circuit Diagram:
Procedure:
STEP 1: CONNECT THE COMPONENTS

Lets get started.


1. Arrange your LED’s in parallel on the bread
board. (The flat side of the led is ground)
2. Connect the positive side of the LED’s to VCC.
3. Add a BC547 transistor to the board.
4. Connect a jumper between the last LED’s in
parallel and the Collector of the BC547.
5. Ground the emitter. (pin 1, EBC)
6. The Base of the BC547 is connected to a 10K
resistor.
7. The 10K resistor is connected to VCC on its
other end.
8. Next add another BC547. The Collector (pin
3, EBC) will join the 10K resistor and the Base of
the 1st BC547
9. Ground the emitter on this transistor as well.
10. The Base of the newly added transistor will
join a 1M resistor & 1uF capacitor.
STEP 2: THE MICROPHONE

Finishing up.
1. One end of the 1M resistor should connect to
the Base of BC547 Q1, connect the loose end to
VCC.
2. The 1uF capacitor's negative leg is connected
to the Base with the 1M resistor.
3. The loose end of the 1uF cap is connected to
a 4K7 resistor AND the positive leg of the mic.
4. The loose end of the 4K7 resistor is goes to
VCC.
5. Ground the negative leg of the mic.
6. The last component is a 47uF capacitor. It is
connected to VCC on one end and grounded on
the other. This is used to filter the noise.
7. Please double check your connections before
proceeding.

References:
 https://youtu.be/zym46QSrLlc
o https://youtu.be/hj7i2KkUN1c

Das könnte Ihnen auch gefallen