Giter Club home page Giter Club logo

warthunder_map_marker_finder's Introduction

WarThunder_Map_Marker_Finder_38

Дальномер по желтой метке на карте. Работает на любом компьютере, даже на самом старом.
Использует скриншоты и оверлей. Основан на нейросети YOLOv5 от ultralitics.
Все вычисления идут через процессор.

English version is here

Установка

  • Скачайте архив (зеленая кнопка Code)

  • Распакуйте весь архив (папка data вам тоже нужна) и перейдите в папку distance

  • Читайте Инструкцию.txt (в ней также рассказаны интересные особенности)

Замер дистанции (t)

Что происходит

Создается скриншот

Нейросеть ищет метки на скриншоте

Еще пример

Установка масштаба карты (Ctrl+N)

Настройка программы

warthunder_map_marker_finder's People

Contributors

yonisen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

warthunder_map_marker_finder's Issues

Замер через большую карту по клавише М

Доброго времени суток! Очень неудобно после установки метки с дрона пересаживаться обратно в танк, просто для того, что бы замерить дистанцию. Есть ли какой-то вариант самостоятельно заменить необходимый файл в скрипте, что бы можно было замерять по большой карте?

1600x900 Res please?

Working super nice, but I only have 1600x900 of max res... any chance you gonna add it? 1680x1050 and below doesn't really work for me

поддержка 21:9

Прошу добавить поддержку широкоформатных мониторов 21:9 (в моём случае 2560х1080)

Отсутствие возможности запустить программу (создание error.log)

После прочтения инструкции я удалил через windows python и выполнил установку того, что написано в инструкции.
install.py завершился без ошибок и я стал переходить к следующей части установки. Но файл settings.pyw не открывается. Ни двойным кликом, ни через cmd, никак. Он даже не генерит никакую ошибку. В windows защитнике проверил, там нет блокированных файлов, антивирусники отключены. Ладно, решил я, двигаемся дальше.
Попробовал запустить miniKarta.py для того, чтоб убедиться, что всё установилось правильно. Но тут cmd закрылась и появился текстовый файл error с следуюзими строчками:

Traceback (most recent call last): File "G:\RangeFinder\WarThunder_Map_Marker_Finder-main\distance\miniKarta.py", line 58, in <module> import torch ModuleNotFoundError: No module named 'torch'
I'm stuck.

Hello, what should I do in this case?

Traceback (most recent call last):
File "D:\WarThunder_Yellow\WarThunder_Map_Marker_Finder-main\distance\code\printResults.py", line 164, in
win32gui.SetForegroundWindow(wt[0])
pywintypes.error: (0, 'SetForegroundWindow', 'No error message is available')
Traceback (most recent call last):
File "D:\WarThunder_Yellow\WarThunder_Map_Marker_Finder-main\distance\code\scale.py", line 77, in selectWindow
win32gui.SetForegroundWindow(wt[0])
pywintypes.error: (0, 'SetForegroundWindow', 'No error message is available')

seems cuda does not match with my cpu...

Traceback (most recent call last):
File "C:\Users\20887\Desktop\distance\miniMap.py", line 93, in
process = distanceFinder.checkDistance(model)
Desktop\distance\code\distanceFinder.py", line 91, in checkDistance
tankArrow = i.numpy()
TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.

there is a type error being raised, and the program terminated, my cpu does not support the cuda

I am not sure what could I do to fix this, could u please give me some advice?

Автор помоги тупому

У меня 3 проблемы
1)танк не найден,не знаючто делать
2)я ввожу цифры с миникарты и постоянно ,на любой карте ошибка
всё сделал по инструкции
3)скрины тупо черные

Scale not working properly

hello first of all amazing code but i have one small problem on scaling one you open the tool it gives 5.0 value automatically and this value seems to be working 225 meter maps but once i try to enter any value it does not accept it just says error can you help with that ?

Проблема с первым запуском программы.

делаю по инструкции нажимаю даблкликом на install.py ошибка ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'code/yolo5/requirements.txt'. запускаю через консоль вроде норм и не запускается даблкликом settings.pyw. если через консоль запускать вылазит окно
image
нажимаю применить и ничего

I have a problem

Hello. i tried WarThunder_Map_Marker_Finder_38 and WarThunder_Yellow_Mark_Rangefinder_33, absolutely not at the same time. And i encounter 2 problem.

First, for WarThunder_Yellow_Mark_Rangefinder_33. When I'm in the game, I press ctrl+n then a dialog box appears in a new tab (getting me out of the game screen). I entered the number of map scale in dialog box, and clicked my game tab so I could get into the game again. put a yellow mark and an overlay of the measurement results appears. the measurements are also precise. The problem is, every time I try to use rangefinder(+r) on my yellow mark, my screen goes back to the home screen. So I had to click on my game tab again to get back to wt

Second, for WarThunder_Map_Marker_Finder_38. Same procedure as before. I press ctrl+n then a dialog box appears in the new tab. I entered number of map scale in the dialog box, clicked on my game tab so I could get back into the game again. and put a yellow mark. The problem is, When I try to use rangefinder (+r), I can't see the measurement overlay on my game screen. However, when I press alt+tab, I can see the measurements overlay. Unlike before, this program didn't make me out of my game screen, but in the game I couldn't see the measurement overlay, and unfortunately the measurements were also very inaccurate

I follow all proccedure, and install python-3.10.6-amd64. And im using windows 10 64bit with amd gpu. Sorry if my english isn't good.

Any advice are really appreciated, and i want to say thank you very much for your beautifull program.

Дистанция не верно просчитывается

Погрешность при замере дистанции на одной линии с противником +-10-20% (погрешность 100 метров на дистанции 350) на любой дистанции. Так же установка 133% размерности миникарты увеличивает эту погрешность практически в двое (на дистанции 1400 показывает 1700). Как это решить?

Архив

Приветствую, поясните пожалуйста не очень зря ему человеку, где найти архив?) Заранее спасибо.

Идея для функции

Предлагаю сделать функцию по определению время до попадания снаряда по цели. В начале матча вводишь рядом с масштабом скорость полёта снаряда из карточки, и при помощи замеряной дистанции определяеться время до попадания, можно ещё сделать функцию обратного отсчёта, если кнопка мыши будет нажата в течении скольки-то секунд после замера дистанции.
Спасибо!

How can I run "settings.py"?

I have ran the "install.py", automatically downloaded all site-packages.
image
But there is no "settings.py" . I can only find a "settings.pyw" , double-click but not work. I change this file's name to "settings.py" then double-click, also not work.
image

image

Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] on win32

Other colors

Could you please make a version that can retrieve teammates' marks (red marks)?, I want to use it to play artillery with my teammates

проблема со скриншотом (?)

почему то прога наверное в 80% случаев скриншотит карту не правильно, бывает что при фактическом разр. 1440х900 и выставленном разрешении в settings.py 1366х768, прога скриншотит правильно, и выдает правильную дистанцию, но опять таки редко.
пару скринов с папки not_found tank/mark
tank
screen98
mark
screen7
screen4

возможно я косолапый, но все абсолютли сделано по инструкции

UnicodeDecodeError

Инициализация нейросетей
YOLOv5 2022-12-10 Python-3.9.11 torch-1.13.1+cpu CPU

Fusing layers...
Model summary: 157 layers, 7015519 parameters, 0 gradients, 15.8 GFLOPs
Adding AutoShape...
YOLOv5 2022-12-10 Python-3.9.11 torch-1.13.1+cpu CPU

Fusing layers...
Model summary: 157 layers, 7012822 parameters, 0 gradients, 15.8 GFLOPs
Adding AutoShape...

Программа ожидает сочетания клавиш
Traceback (most recent call last):
File "D:\WarThunder_Map_Marker_Finder-main\WarThunder_Map_Marker_Finder-main\fullHd_1920_1080\distance\miniKarta\signal3.py", line 20, in signal3
conf = read_config("кнопки")
File "D:\WarThunder_Map_Marker_Finder-main\WarThunder_Map_Marker_Finder-main\fullHd_1920_1080\distance\miniKarta\signal3.py", line 15, in read_config
config.read(name)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\configparser.py", line 697, in read
self._read(fp, filename)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\configparser.py", line 1020, in _read
for lineno, line in enumerate(fp, start=1):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xca in position 1: invalid continuation byte
Traceback (most recent call last):
File "D:\WarThunder_Map_Marker_Finder-main\WarThunder_Map_Marker_Finder-main\fullHd_1920_1080\distance\miniKarta\signal1.py", line 25, in signal1
conf = read_config("кнопки")
File "D:\WarThunder_Map_Marker_Finder-main\WarThunder_Map_Marker_Finder-main\fullHd_1920_1080\distance\miniKarta\signal1.py", line 18, in read_config
config.read(name)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\configparser.py", line 697, in read
self._read(fp, filename)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\configparser.py", line 1020, in _read
for lineno, line in enumerate(fp, start=1):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xca in position 1: invalid continuation byte
image

Проблемы с файлами

Устновил нужную версию питона , дождался окончательной загрузки , после пытаюсь открыть файл setting и другие , не открывается (((
как решать проблему?

Запускается settings.py и тут же закрываеться

Выдает следующее:
File "D:\More\WarThunder_Map_Marker_Finder-main\distance\settings.py", line 47, in read_config
conf['distance_measurement'] = config.get("Combinations", "Distance measurement")
File "D:\More\Python\lib\configparser.py", line 783, in get
d = self._unify_values(section, vars)
File "D:\More\Python\lib\configparser.py", line 1154, in _unify_values raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'Combinations'

Traceback (most recent call last):
File "D:\More\WarThunder_Map_Marker_Finder-main\distance\settings.py", line 204, in
frm_form.winfo_children()[1].insert(0, conf['distance_measurement'])
TypeError: 'NoneType' object is not subscriptable

Сотрудничество и новая идея

Здарова, начальник. Я тоже немного занимаюсь кодингом на питоне и хочу предложить сотрудничество. Я заинтересован в развитии этого проекта и у меня уже появилась идея: листать список масштабов, вместо ввода. По таймауту применяется последний выставленный масштаб. Это одновременно и удобно и нет. Кому-то проще ввести, кому-то легче протыкать его. Я уже накидал небольшой прототип с листающимся списком масштабов(Постарался собрать все. Минимальный - 140, максимальный - 550) и таймаутом. Его по сути осталось встроить в код scale.py, но для этого нужно немного видоизменить окошко, разобраться в коде, его работе(Для меня).

Если бы ты хотя бы помог мне с добавлением моей фичи, было бы уже прикольно)

Пиши в дс, если я тебя хоть немного завлёк идеей, пусть то будет сотрудничество или только листающийся список - darkhacker. А если нет дискорда, пиши в телегу - t.me/pythonistharry

P.S. Судя по исью, ты человек занятой и не всегда успеваешь вовремя отвечать на вопросы людей, а у меня свободного времени навалом, поэтому могу вместо тебя тут следить за проблемами людей.

Появляется ошибка

Когда захожу на карту, нажимаю ctrl+n, ничего не происходит и в корневой папке появляется файл error, в котором написано вот это:
image
Помогите разобраться

Файл miniKarta не запускается

Я всё сделал как написано, но в файле error вылезает ошибка : "Traceback (most recent call last):
File "C:\Users\Дети\Desktop\WarThunder_Map_Marker_Finder-main\distance\miniKarta.py", line 60, in
import distanceFinder
File "C:\Users\Дети\Desktop\WarThunder_Map_Marker_Finder-main\distance\code\distanceFinder.py", line 5, in
import pyautogui
ModuleNotFoundError: No module named 'pyautogui' ".
Что мне делать?

Зона скриншота смещена и оверлей не отображается поверх игры

Как мне сместить зону, которая захватывается? А то не хочет делать нормально скриншоты. Вот пример:
screen7
А ещё как я уже сказал оверлей я вижу только когда сворачиваю игру. К примеру оверлей дискорда у меня поверх тундры отображается нормально, тоесть проблема не на моей стороне, а на стороне программы

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.