I am new to Openmv, have bought 2 cameras and played around a bit with the code, but I cant get to understand how to code the system to do what I want.
I have a glue head moving forward (+) along the Y axis (not controlled) and then just move left or right on the X Axis to keep the glue dispenser on the seam (no PWM, just outputs for left and right with a hysteresis.
1)I have tried linear regression, but that does not just move left or right, so then
2)I tried absolute and differential translation and then just used green LED for left indication and red LED for right, I also could not get this to work correctly.
3)The other option is to have a picture of the seam in the middle to compare to and then move left or right to get the 2 images the same.
4)To simplify this, the easiest would be use the camera as a line scan camera and only sample a few lines on the x axis (maybe in the center of the image) and see where the gray scale values change and then move the head left or right to keep this in the middle.
Any advice will be greatly appreciated. , this is really something i have wanted to do for a couple of years now.