#![cfg(feature = "opencl")]
use rustautogui;
fn main() {
let mut gui = rustautogui::RustAutoGui::new(false).unwrap();
gui.store_template_from_file_custom(
"test.png",
Some((500, 100, 1000, 700)),
rustautogui::MatchMode::SegmentedOclV2,
"test_img",
0.8,
)
.unwrap();
gui.store_template_from_file(
"test2.png",
None,
rustautogui::MatchMode::SegmentedOcl,
"test_img2",
)
.unwrap();
gui.store_template_from_file(
"test3.png",
None,
rustautogui::MatchMode::Segmented,
"test_img3",
)
.unwrap();
gui.find_stored_image_on_screen(0.9, "test_img").unwrap();
gui.find_stored_image_on_screen(0.9, "test_img2").unwrap();
gui.find_stored_image_on_screen(0.9, "test_img3").unwrap();
}