Skip to content

Commit

Permalink
Fix for Reroll bot.
Browse files Browse the repository at this point in the history
The top row of items was sometimes not detected.
  • Loading branch information
NiHoel committed Feb 3, 2023
1 parent b38aef7 commit fb304fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ std::string get_time_str()

void test_screenshot(image_recognition& recog, trading_menu& reader, const std::string& path)
{
reader.update("german", recog.load_image(path));
reader.update("english", recog.load_image(path));

std::cout << "can buy: " << reader.can_buy() << std::endl;

Expand Down
4 changes: 2 additions & 2 deletions cpp/visual studio/CalculatorServer/reader/reader_trading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ const unsigned int trading_params::count_rows = 3;
const float trading_params::off_x = 0;
const float trading_params::off_y = 0;

const cv::Rect2f trading_params::pane_menu_offering = cv::Rect2f(cv::Point2f(trading_params::off_x + 0.62303, trading_params::off_y + 0.42088), cv::Point2f(trading_params::off_x + 0.78273, trading_params::off_y + 0.67813));
const cv::Rect2f trading_params::pane_menu_offering_with_counter = cv::Rect2f(cv::Point2f(trading_params::off_x + 0.62303, trading_params::off_y + 0.46742), cv::Point2f(trading_params::off_x + 0.78181, trading_params::off_y + 0.72466));
const cv::Rect2f trading_params::pane_menu_offering = cv::Rect2f(cv::Point2f(trading_params::off_x + 0.62303, trading_params::off_y + 0.4048), cv::Point2f(trading_params::off_x + 0.78253, trading_params::off_y + 0.66492));
const cv::Rect2f trading_params::pane_menu_offering_with_counter = cv::Rect2f(cv::Point2f(trading_params::off_x + 0.62272, trading_params::off_y + 0.45134), cv::Point2f(trading_params::off_x + 0.78265, trading_params::off_y + 0.71442));
const cv::Rect2f trading_params::pane_menu_name = cv::Rect2f(cv::Point2f(trading_params::off_x + 0.64018, trading_params::off_y + 0.33630), cv::Point2f(trading_params::off_x + 0.75973, trading_params::off_y + 0.36261));
const cv::Rect2f trading_params::pane_menu_reroll = cv::Rect2f(cv::Point2f(trading_params::off_x + 0.68871, trading_params::off_y + 0.70479), cv::Point2f(trading_params::off_x + 0.71735, trading_params::off_y + 0.75452));
const cv::Rect2f trading_params::pane_menu_execute = cv::Rect2f(cv::Point2f(trading_params::off_x + 0.43937, trading_params::off_y + 0.76836), cv::Point2f(trading_params::off_x + 0.56126, trading_params::off_y + 0.79713));
Expand Down
2 changes: 1 addition & 1 deletion cpp/visual studio/CalculatorServer/reader/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ using namespace web::http::client; // HTTP client features
using namespace concurrency::streams; // Asynchronous streams

/* IMPORTANT!!: this should be updated to the current release tag*/
const std::string version::VERSION_TAG = std::string("v10.1");
const std::string version::VERSION_TAG = std::string("v10.2");

void version::check_and_log()
{
Expand Down

0 comments on commit fb304fc

Please sign in to comment.