Professional Documents
Culture Documents
Tuan 0 Introduction Install Software2 PDF
Tuan 0 Introduction Install Software2 PDF
Email: ldhanh@hcmut.edu.vn
Mobile: 84909930983
VISION
• Image processing
Image processing is a method to perform some operations on an image, in order to get an
enhanced image or to extract some useful information from it. It is a type of signal processing
in which input is an image and output may be image or characteristics/features associated
with that image.
• Computer Vision:
In Computer Vision, computers or machines are made to gain high-level understanding
from the input digital images or videos with the purpose of automating tasks that the
human visual system can do. It uses many techniques and Image Processing is just one of
them.
Ex: Refrigerator cold/hot setting, Clothes dryer with moisture sensor , Temperatue
setting for oven
• Is it difficult? Yes.
– Controlling 6D pose of the end-effector from 2D image features.
– Nonlinear projection, degenerate features, etc.
• Is it important? Of course.
– Vision is a versatile sensor.
– Many applications: industrial, health, service, space, humanoids,
etc.
Cảm biến hình ảnh: Một cảm biến hình ảnh (hình 1.13) bao gồm bảng mạch nhỏ
gồm các photodiode rất nhạy cảm với ánh sáng, chúng chuyển đổi từ tín hiệu
quang thành tín hiệu điện, mỗi diode khi bị ánh sáng tác động sẽ sản sinh một
điện áp tỷ lệ thuận với cường độ ánh sáng nó tác động, khi không có ánh sáng
tác động chúng sẽ không tạo ra mức điện áp nào cả. Tùy theo cường độ ánh sáng
tác động vào cảm biến, cảm biến sẽ tạo ra các tín hiệu hình ảnh. Bộ phận xử lý sẽ
xử lý những tín hiệu này thành tín hiệu video để đưa tới hiển thị trên màn hình giám
sát hoặc thiết bị ghi hình trong hệ thống.
I am trying to choose a camera and lens for my imaging system. How do I make sure that I have the
correct lens focal length, and image sensor resolution? I know the following about the real life situation:
1. Field of view (FOV): Area under inspection that the camera needs to acquire
2. Smallest feature: The size of the smallest feature that I want to detect in the image
3. Working distance (WD): Distance from the front of the lens to the object under inspection
Ví dụ 1.2: Một camera có FOV là 500x600mm cần nhìn một vật có đặc điểm ảnh nhỏ nhất
là 2mm.
a) Camera độ phân giải 640x480 có đủ không?
b) Tính độ phân giải cần có của camera.
Ta có: FOV=500x600mm, smallest feature =2mm=> độ phân giải cần ít nhất là 500x600
pixel. Camera có độ phân giải 640x480 là không đủ=> cần camera có độ phân giải cao hơn
ví dụ như (1024x768)
b) Nếu chỉ có focus length:16 => working distance phải thay đổi là:
Focal Length x FOV = Sensor Size x Working Distance
16 500 (4.4 1000) Working Distance
Working Distance 1818mm
• MatLab
• VS2010
• Opencv
• PCL (Point Cloud Library)
OpenCV (Open Computer Vision) là một thư viện mã nguồn mở hàng đầu cho xử
lý về thị giác máy tính, machine learning, xử lý ảnh. OpenCV đươc viết bằng
C/C++, vì vậy có tốc độ tính toán rất nhanh, có thể sử dụng với các ứng dụng liên
quan đến thời gian thực. Opencv có các interface cho C/C++, Python Java vì vậy
hỗ trợ được cho Window, Linux, MacOs lẫn Android, iOS OpenCV có cộng đồng
hơn 47 nghìn người dùng và số lượng download vượt quá 6 triệu lần
Ứng dụng
Opencv có rất nhiều ứng dụng:
•Nhận dạng ảnh
•Xử lý hình ảnh
•Phục hồi hình ảnh/video
•Thực tế ảo
•Các ứng dụng khác
Mat edges;
namedWindow("edges",1);
for(;;)
{
Mat frame;
cap >> frame; // get a new frame from camera
cvtColor(frame, edges, COLOR_BGR2GRAY);
GaussianBlur(edges, edges, Size(7,7), 1.5, 1.5);
Canny(edges, edges, 0, 30, 3);
imshow("edges", edges);
if(waitKey(30) >= 0) break;
}
// the camera will be deinitialized automatically in VideoCapture destructor
return 0;
}
http://seevisionc.blogspot.com/2012/07/compiling-opencv-with-openni-for.html