Video Processing 視訊處理
2012年5月3日 星期四
Skin Detection
frame = cvQueryFrame(capture);
frame1 = cvCreateImage(cvSize(frame->width,frame->height), IPL_DEPTH_8U, 1);
------------------------------
while(true){
frame = cvQueryFrame(capture);
cvCvtColor(frame, frame, CV_BGR2YCrCb);
cvInRangeS(frame, cvScalar(0,137,77), cvScalar(256,177,127), frame1);
XXXXXXXX
}
作業: 面膜
鋼鐵人
面具自選 眼睛須去背
Trace Program:
------------------------
uchar* ptr3=(uchar*) frame1->imageData;
int id = 0;
int mouseX=0;
int mouseY=0;
while (ptr3[id] == 0 && id < (frame1->height*frame1->width))
id++;
mouseY = id/frame1->width;
mouseX = id%frame1->width;
printf("%5d %5d\n", mouseX, mouseY);
-----------------------
2010年2月18日 星期四
HW12: Line and Circle Detection
How many lines and circles on your body?
Hough Transformhttp://en.wikipedia.org/wiki/Hough_transform
Hough Transformhttp://en.wikipedia.org/wiki/Hough_transform
HW10: X-Projection and Y-Projection
1. Download the HW08-2.cpp program from webhd.mcu.edu.tw. Excute and
trace the program.Study the codes implementing X-projection and
Y-projection.
2. Draw the following lines based on X-projection and Y-projection.
Virtual Mouse
3. Design a virtual mouse using X-projection and Y-projection.
4. Design a virtual button using information extracted by background subtraction.
5. Design a simple paint program.
2. Draw the following lines based on X-projection and Y-projection.
Virtual Mouse
3. Design a virtual mouse using X-projection and Y-projection.
4. Design a virtual button using information extracted by background subtraction.
5. Design a simple paint program.
HW09: Y-Projection
2010年2月12日 星期五
HW08: Background Subtraction
Who are you?
1. Download the HW08.cpp program from webhd.mcu.edu.tw.
2. Excute and trace the program.
3. Study the codes.
Body Shap Game
4. Download the HW08-2.cpp, mask1,jpg and mask2.jpg from webhd.mcu.edu.tw.
5. Excute and trace the program. 6. Study the codes. HW08-2.cpp is a game that will coount the overlapped area between the mask and your body. You win the game if the the overlapped area is larger than a predefined percentage of the mask.
2. Excute and trace the program.
3. Study the codes.
Body Shap Game
4. Download the HW08-2.cpp, mask1,jpg and mask2.jpg from webhd.mcu.edu.tw.
5. Excute and trace the program. 6. Study the codes. HW08-2.cpp is a game that will coount the overlapped area between the mask and your body. You win the game if the the overlapped area is larger than a predefined percentage of the mask.
7. Design a new mask for the game.
8. Design a mask in which two person have to cooperate to pass the game.
9. Design a mask in which two person have to compete to pass the game.
10. Use cvPutText to let the video to show some text information like socres or winners.
11. Extend the game to have a sound to hint the user if he or she passes the game.
12. Extend the game to have multiple levels with different masks.
訂閱:
文章 (Atom)