zappybiby / EuroTruckAutopilot

Autonomous Driving for Euro Truck Simulator 2
MIT License
12 stars 2 forks source link

Hidden treatment images #6

Open hardfreqz opened 6 years ago

hardfreqz commented 6 years ago

I can't see the windows of "original_warped" "adaptiveTreshold" "merge"

The windows are invisible. capture

screenshot_1

Any idea how to fix that ?

zappybiby commented 6 years ago

The relevant code is here: https://github.com/bethesirius/ChosunTruck/blob/889644385ce57f971ec2921f006fbb0a167e6f1e/windows/src/main.cpp#L140

We divide the width and height by a certain value so that it (in theory) works for any monitor size. Find the coordinates of where you would like to have the window display and calculate what you would need to divide the width by to move to those coordinates. I wonder if the windows are being drawn behind the game - to check, hover over the windows that you see in your second screenshot to see if they appear in front of the game.

The windows are being drawn as seen in your second screenshot so I believe the issue is with the way the windows are being moved and not an issue with the windows not being displayed.

zappybiby commented 6 years ago

Oh my goodness. I am on my phone and thought this was for another project.

The window positions are hardcoded as I didn't expect anyone to look at this project yet. The issue is that the windows are hardcoded to work on computers with two monitors.

Change these parameters to the coordinates of your choosing: https://github.com/zappybiby/EuroTruckAutopilot/blob/1cc15ca608d15deca02fee1f28e57f344070264b/image_process.py#L32

hardfreqz commented 6 years ago

Not problem guy ! And Thank you for spend your time for me ! Thank you for all, i will test later.

zappybiby commented 6 years ago

Did that resolve the issue?