Code snippets, technical articles, tips on computing and programming...
simple ball game by colored object motion tracking - image processing opencv javacv
DEMO VIDEO: simple ball game by colored object motion tracking - using javacv opencv to detect the path of moving object. This is earliest version of the game.
Hello sir I integrated thresholding and capture program but i dont know how to integrate those two program with collision detection program. pls give some tips
Once you detect the position (x,y) of moving object through capture and thresholding codes, pass these parameter into collision detection code where mouse coordinates is passed as MouseEvent for the striker. This will allows you to use the moving object's coordinates as mouse coordinate to control the striker. Hope This helps. Best of luck. I am planning to upload the complete codes (integrated) to google code. But this might take some time. Thanks.
i saw this blog and it caught my interest...we have a project regarding computer vision and i think it will help me a lot. but can you share your source code?
can you post the whole and complete source code wherein we can control the game using the colored object tracking?plsplsls...our project is like a hockey game but we need to control it using the camera...your code is very helpful...
i almost loosing hope in integrating the javacv code and the collision detection in controlling the ball in the game...pls i need the help of the developer of this sample game...i think i need your code as my guide in developing my project.
hi GT...pls help us on our project...we create a pc game using colored object tracking and collision detection...we based our project to your simple ball game using colored object tracking...but we are loosing hope in integrating the two separate code the collision detection and the colored object tracking.how can we integrate the two program so that we can control the ball as what your simple ball game functionality...pls we need your full integrated source code..or if you dint want to share the code..just give me some idea on how can we integrate colored object tracking and the collision detection...plsplspsls
nice bro
ReplyDeleteHello sir
ReplyDeleteI integrated thresholding and capture program but i dont know how to integrate those two program with collision detection program.
pls give some tips
Once you detect the position (x,y) of moving object through capture and thresholding codes, pass these parameter into collision detection code where mouse coordinates is passed as MouseEvent for the striker. This will allows you to use the moving object's coordinates as mouse coordinate to control the striker.
DeleteHope This helps. Best of luck.
I am planning to upload the complete codes (integrated) to google code. But this might take some time.
Thanks.
hello ganesh can i ask how to rotate the camera? so that it will not look like a mirror.
ReplyDeleteYou need cvFlip function : cvFlip(img, img, 1);// l-r = 90_degrees_steps_anti_clockwise
DeleteYou can look at here : http://ganeshtiwaridotcomdotnp.blogspot.com/2011/12/javacv-capture-save-flip-show-live.html
Thanks.
Can you share the source code? This shoud be extremly useful to learn OpenCV and Java for the junior developers.
ReplyDeleteyes
Deletethe codes can be found in other javacv,opencv posts ...
Deletejust go to :
http://ganeshtiwaridotcomdotnp.blogspot.com/search/label/OpenCV-JavaCV
Great idea for Natural Interaction.
ReplyDeletei saw this blog and it caught my interest...we have a project regarding computer vision and i think it will help me a lot. but can you share your source code?
ReplyDeletethe codes can be found in other javacv,opencv posts ...
Deletejust go to :
http://ganeshtiwaridotcomdotnp.blogspot.com/search/label/OpenCV-JavaCV
can you post the whole and complete source code wherein we can control the game using the colored object tracking?plsplsls...our project is like a hockey game but we need to control it using the camera...your code is very helpful...
ReplyDeletei almost loosing hope in integrating the javacv code and the collision detection in controlling the ball in the game...pls i need the help of the developer of this sample game...i think i need your code as my guide in developing my project.
ReplyDeletehi GT...pls help us on our project...we create a pc game using colored object tracking and collision detection...we based our project to your simple ball game using colored object tracking...but we are loosing hope in integrating the two separate code the collision detection and the colored object tracking.how can we integrate the two program so that we can control the ball as what your simple ball game functionality...pls we need your full integrated source code..or if you dint want to share the code..just give me some idea on how can we integrate colored object tracking and the collision detection...plsplspsls
ReplyDelete