A
amirian
Guest
Hi to All
This is my first post here.
I'm writing an image processing code on mobile phones to detect a 3D 3*3*3 rubik's cube in the input image. The image is in YUV420SP color space and contains a view of 3 faces of the cube as follows. These are my problems:
1) In order to detect each cube color, I want to partition the image pixels to: 1)White 2)Yellow 3)Black 4)Blue 5)Red 6)Green 7)Orange and 8)Other
1.1- Which color space best meets my requirements?
1.2- How to convert it from and to YUV420SP?
1.3- What partitioning thresholds should I apply to image colors in the selected color space
2) I want to extract the coordinates of each 3 viewable faces in order to find each cube color. I found it best operable to apply straight line detection, find the lines intersections and use the 6 outer intersections making a hexagonal as the 3d cube corners. How should I implement this special issue to run fast? The image may contain more straight lines in the background. Please help me also with the line detection algorithm. I have programming skills and want to write in java.
Uploaded with ImageShack.us
Any guidelines would be appreciated.
This is my first post here.
I'm writing an image processing code on mobile phones to detect a 3D 3*3*3 rubik's cube in the input image. The image is in YUV420SP color space and contains a view of 3 faces of the cube as follows. These are my problems:
1) In order to detect each cube color, I want to partition the image pixels to: 1)White 2)Yellow 3)Black 4)Blue 5)Red 6)Green 7)Orange and 8)Other
1.1- Which color space best meets my requirements?
1.2- How to convert it from and to YUV420SP?
1.3- What partitioning thresholds should I apply to image colors in the selected color space
2) I want to extract the coordinates of each 3 viewable faces in order to find each cube color. I found it best operable to apply straight line detection, find the lines intersections and use the 6 outer intersections making a hexagonal as the 3d cube corners. How should I implement this special issue to run fast? The image may contain more straight lines in the background. Please help me also with the line detection algorithm. I have programming skills and want to write in java.
Uploaded with ImageShack.us
Any guidelines would be appreciated.