Computer Vision
Computer Vision
VISION
FYP PROJECT PROGRESS
Thermal vision camers
•Most famous thermal camers in market FLIR
• FLIR Tools SDK:If you are using a FLIR thermal camera, you can check the
FLIR Tools SDK for Python.
• import PySpin LIBRARY IS USE FOR SEPCIFIC FLIR CAMERA
•cam.OffsetX.SetValue(0)
•cam.OffsetY.SetValue(0)
•cam.Width.SetValue(640)
•cam.Height.SetValue(480)
•THESE ARE FOUR PARAMTERS TO DESCRIBE THE RIO OF INTREST
OF THE CAMERAS
• https://www.flir.asia/browse/security/thermal-secur
Flir ity-cameras/
Different software provided by flir
documnetationa and helping material
How to connect using
python code
• Connect your FLIR camera to your laptop using the
appropriate interface (USB, GigE, etc.). Ensure that the
camera is recognized by your operating system.
def setup_flir_camera():
system = PySpin.System.GetInstance()
cam_list = system.GetCameras()
if cam_list.GetSize() == 0:
print("No FLIR cameras found.")
return None
cam = cam_list.GetByIndex(0)
cam.Init()
cam.OffsetX.SetValue(0)
cam.OffsetY.SetValue(0)
cam.Width.SetValue(640)
cam.Height.SetValue(480)
return cam
Hikvision cameras
to a PC and get real-
time video frames
• Will use RSTP protocol:
Real-Time Streaming
Protocol.
• Both camera must be
connected to running code
device.
• Genrate rstp url to access
the camera:
• url:
rtsp://username:password@
ip_address:port/stream
How to get the parts of rstp url:
Access the Camera Web Interface: Login to the Camera: You will be
every ip cam has its ip address to access prompted to enter a username and password
its interface with some ip to log in. Use the default credentials or the
address:192.168.0.0 ones you have set up for your camera.
•cap = cv2.VideoCapture(rtsp_url)
REDUCING THE
SIZE OF
RECORDED VIDEOS
TO RESIZE THE FRAME IN PYTHON