Ask Your Question

Sweptica's profile - activity

2019-04-15 08:04:42 -0600 received badge  Notable Question (source)
2017-12-27 13:13:35 -0600 received badge  Popular Question (source)
2015-02-17 01:08:11 -0600 commented answer Detecting multiple squares within a square and extracting their coordinates

Berak, the code i have used is the exact one you've provided above without the floorMat or user detection part. (i'm using vs2010)

2015-02-17 00:44:03 -0600 commented answer Detecting multiple squares within a square and extracting their coordinates

I'm getting an assertion fail error, on the line double a = contourArea(contours[i]); "vector subscript out of range"

2015-02-16 11:10:54 -0600 received badge  Supporter (source)
2015-02-16 09:41:47 -0600 commented answer Detecting multiple squares within a square and extracting their coordinates

Berak before you posted the updates to your existing answer, i'm getting an error over your previous code Unhandled exception at 0x000007fefdc3940d in Opencv_Test.exe: Microsoft C++ exception: cv::Exception at memory location 0x002af520..

I have tried to debug as much as I can, but i can't seem to catch what's causing the exception

2015-02-15 05:41:20 -0600 received badge  Editor (source)
2015-02-15 05:36:50 -0600 commented question Detecting multiple squares within a square and extracting their coordinates

The users position i can easily get from the skeletal frame of the kinect, the issue is how will i check what are the boundaries of the square. For example, after I place this mat on the floor how will my program detect if the user is in the boundary of square 1, 2 or 3 etc. . .

2015-02-15 04:28:54 -0600 asked a question Detecting multiple squares within a square and extracting their coordinates

I would like to be able to detect individual squares inside the a block and extract their coordinates,

Essentially i'm trying to create a DDR (dance dance revolution) game using opencv and kinect. To detect where the user's are stepping inside the block.

I know there are many edge detection algorithms but i'm not sure where to start.

Here is a picture of the block, I want to detect where the user is stepping (1,2,3..etc) or more specifically the boundary of each square. For example, how does my program detect if the user is within the boundary of square 1 or 2 etc

image description