-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
align is not working #6
Comments
To get inside, you can make the targetX/Y displayed on status screen, or you can modify the sharedMemory array size in |
For the compass detecting :
For the screenCapture :
|
I think I managed to implement my findContours but I noticed that the color changes depending on the system I guess. So first aling worked but in the second the color of the nav change to kind of purple: That breaks my function as I was using the bluemask I configurated, and now its shown totally black as there are no blues on the image...I am about to kill my self if can't get this working xD |
Maybe try to use grayscale image for processing, there's no need to worry about the color. |
Sadly I was not able to find contours in the grayscale image (not sure if there is more image processing to do before triying to find the contours...). About my method to be honest it only worked once in the first aling. I had to modify the +10 of I am not good at algebra so also dont understad how with the radius of the compass and the coords of the navpoint you are able to calculate the distance and direction you must move the ship... I modified getNavPointsByCompass, keyPointDetector2 and imageProcessing
|
alright, see 5c4ed08 |
Update hsv filters bdd3967 |
mistakes are normal sometimes. They usually wont interfere
the result, just taking more time
…________________________________
From: DLAcoding ***@***.***>
Sent: Wednesday, May 4, 2022 2:52:34 AM
To: Matrixchung/EDAutopilot ***@***.***>
Cc: Matr1x. ***@***.***>; Comment ***@***.***>
Subject: Re: [Matrixchung/EDAutopilot] align is not working (Issue #6)
Now its working much better but still some times gets stuck:
[image]<https://user-images.githubusercontent.com/28142896/166522563-98c41b06-8ca4-4a58-b1ba-c9baea4058da.png>
[image]<https://user-images.githubusercontent.com/28142896/166522617-96dd5e94-3e5d-4889-a4f7-f25b5010f0ad.png>
[image]<https://user-images.githubusercontent.com/28142896/166522653-186c2d6b-4a32-49a4-8e47-a877fc26d656.png>
[image]<https://user-images.githubusercontent.com/28142896/166522676-beec6629-3e89-43d1-ac02-00f341c09e38.png>
—
Reply to this email directly, view it on GitHub<#6 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AE4OVWR6GN62FOFGENYQEQ3VIFYXFANCNFSM5UJHFHYQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I made the configurations said in the Readme but something is missing I think...
When aling is called nothing happens, but if I do the aling manually then is recognised (isAligned =1). I tried to modify the code but cant get the logic behind this point...
Weird thing happens (or maybe not): I have noticed that when isAligned = 1, targetX and targetY usually stay at =-1. Infact, to se values different than -1 I have to not center the navPointImg.
It may be anything related to graphics (like shades, etc?)
The text was updated successfully, but these errors were encountered: