2016-01-18 12:04:12 -0600 | commented answer | How to follow a line while moving in (x,y) plane? So the edge of the ROI is where the center of the camera needs to go? Indeed he needs to always centralize the camera on the line being followed. What about the phrase: " In my direction of travel I set a region (30 degrees) either side of that point and disregard anything outside of it." ? I'm trying to figure out from where to where is this region of 30 degrees, any ideas? |
2016-01-18 07:15:21 -0600 | commented answer | How to follow a line while moving in (x,y) plane? "Question 1 - The vector holds sequential X,Y coordinates for the camera." If he wants to get the coordinates of the camera, he can simply read the central pixel of the image, since the camera is facing it. "Question 4 - There is a way to transform X,Y coordinates from the contour to camera coordinates and finally instructions to the motors." From my binary image, i can get the angle of orientation of the line segment, but that isn't enough to drive the motors, i need to decide which way i want to follow the line, CW or CCW, how can i do that? and how did he do that?! |
2016-01-18 02:47:52 -0600 | received badge | ● Student (source) |
2016-01-18 02:04:58 -0600 | asked a question | How to follow a line while moving in (x,y) plane? In short what i want is to follow a line like the guy in this video: He talked a little bit about his algorithm in the description and in the comment section, but he wasn't that clear, since This type of following the line has great applications, i thought you guys might help me shed some light on it. In the video description he said: "The line intersects the roi and the vector is calculated" In the comment section he said: "I get the array of values from my ROI, one per degree. I then set a threshold level and turn these values into binary values. In my direction of travel I set a region (30 degrees) either side of that point and disregard anything outside of it. I find the centre value of the binary array representing line. This gives me an angle to drive to. I then turn this into a x and y velocity using sin cos functions. I feed the x any velocity into the stepper drives and the camera closes the loop." Question2: What values he is extracting from the ROI? and what does "one per degree" mean in this context As you guys see, i didn't understand a thing from his explanation? any help please. |
2015-02-22 15:39:52 -0600 | commented question | Block process an image? @berak ,Your answer is perfect, it works for all image sizes, thank you! |
2015-02-22 13:14:30 -0600 | commented question | Block process an image? @theodore, the number of rows of my image is primary, so the function is not working and asking for a different number of divisors, but i'm okay with a block that is smaller than the other, i can modify the algorithm to divide each image according to a different number, i need all my images to be divided into 16 tiles whether the tiles are even or not. |
2015-02-21 15:01:15 -0600 | received badge | ● Editor (source) |
2015-02-21 14:57:59 -0600 | asked a question | Block process an image? I want to :
Untill now i'm stuck at dividing the image into 16 blocks. The divide section is actually diving my image into 25 blocks rather than 16. So how can i divide my image into 16 blocks and process each one of them? Code: |