For reference, I am using nox (phone, 480 X 800), I enter duel links and run the program after the announcements in an area where NPCs show up. When I run the program it does nothing with duel links.
Here is a copy of everything after $ python main.py bot -s
C:\Program Files\Python36\lib\site-packages\h5py__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
2018-07-23 15:02:16 - INFO - bot - APScheduler failed to schedule run, forcing run now
2018-07-23 15:02:17 - DEBUG - bot - Value run_now modified
2018-07-23 15:02:17 - DEBUG - bot - Value stop modified
2018-07-23 15:02:17 - INFO - apscheduler.scheduler - Scheduler started
2018-07-23 15:02:17 - DEBUG - bot - Value next_run_at modified to 2018-07-23 15:02:18.507718
2018-07-23 15:02:18 - INFO - apscheduler.scheduler - Added job "DuelLinkRunTime.in_main" to job store "default"
2018-07-23 15:02:18 - INFO - bot - Next run at 2018-07-23T15:02:18.507718
2018-07-23 15:02:18 - INFO - apscheduler.executors.default - Running job "DuelLinkRunTime.in_main (trigger: date[2018-07-23 15:02:18 EDT], next run at: 2018-07-23 15:02:18 EDT)" (scheduled at 2018-07-23 15:02:18.507718-04:00)
2018-07-23 15:02:18 - INFO - apscheduler.scheduler - Removed job cron_main_at_2018-07-23T15:02:18.507718
2018-07-23 15:02:18 - DEBUG - bot - Value last_runat modified to 2018-07-23 15:02:18.562090
2018-07-23 15:02:19 - INFO - bot.provider.Nox - Checking for Start Screen
2018-07-23 15:02:19 - INFO - bot.provider.Nox - Waiting for DuelLinks Landing Page
'bin\adb.exe' is not recognized as an internal or external command,
operable program or batch file.
OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdecode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637
'bin\adb.exe' is not recognized as an internal or external command,
operable program or batch file.
OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdecode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637
'bin\adb.exe' is not recognized as an internal or external command,
operable program or batch file.
OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdecode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637
'bin\adb.exe' is not recognized as an internal or external command,
operable program or batch file.
OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdecode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637
2018-07-23 15:02:23 - DEBUG - bot.provider.Nox - LOOKING FOR BACK BUTTON, HIGH CORRERLATION
'bin\adb.exe' is not recognized as an internal or external command,
operable program or batch file.
OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdecode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637
2018-07-23 15:02:23 - DEBUG - bot - <class 'cv2.error'> duel_links_runtime.py 437
2018-07-23 15:02:24 - DEBUG - bot - Traceback (most recent call last):
File "C:\Users\Carl\Yugioh-bot\bot\duel_links_runtime.py", line 437, in in_main
provider.compare_with_back_button()
File "C:\Users\Carl\Yugioh-bot\bot\providers\nox\nox.py", line 193, in compare_with_back_button
img = self.get_img_from_screen_shot()
File "C:\Users\Carl\Yugioh-bot\bot\providers\actions.py", line 41, in get_img_from_screen_shot
img = cv2.imdecode(nparr, cv2.IMREADCOLOR)
cv2.error: C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:637: error: (-215) !buf.empty() && buf.isContinuous() in function cv::imdecode
2018-07-23 15:02:24 - INFO - apscheduler.executors.default - Job "DuelLinkRunTime.inmain (trigger: date[2018-07-23 15:02:18 EDT], next run at: 2018-07-23 15:02:18 EDT)" executed successfully
'bin\adb.exe' is not recognized as an internal or external command,
operable program or batch file.
OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdecode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637
'bin\adb.exe' is not recognized as an internal or external command,
operable program or batch file.
OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdecode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637
'bin\adb.exe' is not recognized as an internal or external command,
operable program or batch file.
OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdecode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637
For reference, I am using nox (phone, 480 X 800), I enter duel links and run the program after the announcements in an area where NPCs show up. When I run the program it does nothing with duel links.
Here is a copy of everything after $ python main.py bot -s C:\Program Files\Python36\lib\site-packages\h5py__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from
float
tonp.floating
is deprecated. In future, it will be treated asnp.float64 == np.dtype(float).type
. from ._conv import register_converters as _register_converters 2018-07-23 15:02:16 - INFO - bot - APScheduler failed to schedule run, forcing run now 2018-07-23 15:02:17 - DEBUG - bot - Value run_now modified 2018-07-23 15:02:17 - DEBUG - bot - Value stop modified 2018-07-23 15:02:17 - INFO - apscheduler.scheduler - Scheduler started 2018-07-23 15:02:17 - DEBUG - bot - Value next_run_at modified to 2018-07-23 15:02:18.507718 2018-07-23 15:02:18 - INFO - apscheduler.scheduler - Added job "DuelLinkRunTime.in_main" to job store "default" 2018-07-23 15:02:18 - INFO - bot - Next run at 2018-07-23T15:02:18.507718 2018-07-23 15:02:18 - INFO - apscheduler.executors.default - Running job "DuelLinkRunTime.in_main (trigger: date[2018-07-23 15:02:18 EDT], next run at: 2018-07-23 15:02:18 EDT)" (scheduled at 2018-07-23 15:02:18.507718-04:00) 2018-07-23 15:02:18 - INFO - apscheduler.scheduler - Removed job cron_main_at_2018-07-23T15:02:18.507718 2018-07-23 15:02:18 - DEBUG - bot - Value last_runat modified to 2018-07-23 15:02:18.562090 2018-07-23 15:02:19 - INFO - bot.provider.Nox - Checking for Start Screen 2018-07-23 15:02:19 - INFO - bot.provider.Nox - Waiting for DuelLinks Landing Page 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdecode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdecode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdecode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdecode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 2018-07-23 15:02:23 - DEBUG - bot.provider.Nox - LOOKING FOR BACK BUTTON, HIGH CORRERLATION 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdecode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 2018-07-23 15:02:23 - DEBUG - bot - <class 'cv2.error'> duel_links_runtime.py 437 2018-07-23 15:02:24 - DEBUG - bot - Traceback (most recent call last): File "C:\Users\Carl\Yugioh-bot\bot\duel_links_runtime.py", line 437, in in_main provider.compare_with_back_button() File "C:\Users\Carl\Yugioh-bot\bot\providers\nox\nox.py", line 193, in compare_with_back_button img = self.get_img_from_screen_shot() File "C:\Users\Carl\Yugioh-bot\bot\providers\actions.py", line 41, in get_img_from_screen_shot img = cv2.imdecode(nparr, cv2.IMREADCOLOR) cv2.error: C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:637: error: (-215) !buf.empty() && buf.isContinuous() in function cv::imdecode2018-07-23 15:02:24 - INFO - apscheduler.executors.default - Job "DuelLinkRunTime.inmain (trigger: date[2018-07-23 15:02:18 EDT], next run at: 2018-07-23 15:02:18 EDT)" executed successfully 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdecode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdecode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdecode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637
How do I fix this?