Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2
You last visited: Today at 11:43

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



OpenCV Screen Capture Error (Uriel)

Discussion on OpenCV Screen Capture Error (Uriel) within the Metin2 forum part of the Popular Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2021
Posts: 1
Received Thanks: 0
OpenCV Screen Capture Error (Uriel)

Hello dear forum members, I made Pixel Bot for Metin2 game with OpenCV, but the protection named "Uriel AC" disabled the "Screen Capture" feature and Pixel bot does not work, how to solve this problem?

Please help me
elci27 is offline  
Old 10/12/2022, 08:38   #2
 
elite*gold: 0
Join Date: Jul 2022
Posts: 15
Received Thanks: 0
To demonstrate a NoneType error in action I decided to create a highly simplified Python + OpenCV script that represents what you might see elsewhere on the PyImageSearch blog.

Open up a new file, name it display_image.py , and insert the following code:

→ Launch Jupyter Notebook on Google Colab
→ Launch Jupyter Notebook on Google Colab
OpenCV: Resolving NoneType errors
# import the necessary packages
import argparse
import cv2
# construct the argument parse and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required=True,
help="path to the image file")
args = vars(ap.parse_args())
# load the image from disk and display the width, height,
# and depth
image = cv2.imread(args["image"])
(h, w, d) = image.shape
print("w: {}, h: {}, d: {}".format(w, h, d))
# show the image
cv2.imshow("Image", image)
cv2.waitKey(0)
All this script does is:

Parse command line arguments.
(Attempts to) load an image from disk.
Prints the width, height, and depth of the image to the terminal.
Displays the image to our screen.
For most Python developers who are familiar with the command line, this script won’t give you any trouble.

But if you’re new to the command line and are unfamiliar/uncomfortable with command line arguments, you can easily run into a NoneType error if you’re not careful.

How, you might say?

The answer lies in not properly using/understanding command line arguments.

Over the past few years of running this blog, I’ve seen many emails and blog post comments from readers who are trying to modify the .add_argument function to supply the path to their image file.

Regards,
Rachel Gomez
rachelgomez123 is offline  
Reply

Tags
farmbot;metin2;p server, metin2, opencv, python, uriel


Similar Threads Similar Threads
bot openCV, need some help with input
11/02/2020 - Flyff - 5 Replies
Hi, Just for fun i make a simple bot with openCV to recognize and auto attack mob. Everything work well but i had obviously a issue with nProtect GameGuard who block all SendInput (windll). If i run flyff on virtualbox or use a arduino like a fake usb mouse to send input everything work well but... If anyone have a better solution to send input or bypass gg i take it ! :) Thx all !
Python opencv Mouse_Events help!
06/27/2020 - General Coding - 0 Replies
#closed
OpenCV python got update EXANE
11/24/2018 - DarkOrbit - 8 Replies
opencv got update and its %30 more efficient on image scaning which means it could help about background pixel bot like exobot. EXANE PLEASE UPDATE!!!
Fast Variance calculation in OpenCV
04/11/2016 - General Coding - 2 Replies
I try to keep my question as short as possible. I have got an Image of around 4048 x 3040 pixels. My task is to find some regions of interest. These regions can be easily found by computing the variance of border of a rectangle. I have to do this for every pixel in image with rectangle size of around 10x10. Just imagine this would be my image (1 are the pixels I want to get variance of, x is my current pixel): Now I want to calculate variance for this small rectangle (width=3,...



All times are GMT +2. The time now is 11:43.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.