0% found this document useful (0 votes)
31 views

Computer Vision

This document discusses progress on a computer vision final year project involving thermal and IP cameras. It provides instructions on connecting and configuring FLIR thermal cameras using the PySpin library and SDK in Python. It also provides directions on connecting Hikvision IP cameras using RTSP protocol to retrieve real-time video frames from the camera stream. The document discusses resizing captured frames to reduce the size of recorded videos.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Computer Vision

This document discusses progress on a computer vision final year project involving thermal and IP cameras. It provides instructions on connecting and configuring FLIR thermal cameras using the PySpin library and SDK in Python. It also provides directions on connecting Hikvision IP cameras using RTSP protocol to retrieve real-time video frames from the camera stream. The document discusses resizing captured frames to reduce the size of recorded videos.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

COMPUTER

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.

Find RTSP Settings: Look for parameters


Navigate to the Video Settings:
like "RTSP Server," "RTSP Port," or similar.
rtsp://username:password@ip_address:port/stream

•Replace "username" and "password" with your camera login credentials.


•Replace "ip_address" with the camera's IP address.
•Replace "port" with the RTSP port (default is often 554, but it may be different based on
your camera's configuration).
•Ensure that "stream" is the correct path or stream identifier.

•cap = cv2.VideoCapture(rtsp_url)
REDUCING THE
SIZE OF
RECORDED VIDEOS
TO RESIZE THE FRAME IN PYTHON

# Resize the frame to half of its


original size
• resized_frame = cv2.resize(frame,
(frame_width // 2, frame_height // 2))

You might also like