Quote:
Originally Posted by Dev7
Hello.
Anyone selling trained module for csgo2. Just want the Module or trained weights for the AI to recognize what it's looking at and nothing else.
#################Long term partner to expand to other games##################
$500au-$2000au depending on weights.
-head
-neck
-chest
-legs
-bonus for unimplemented move mouse.-
no retard time wasters.
proof of build, modules.
Payment through Middle Man provided on Elitepvpers. Paying fee my way.
payment LTC
|
# Load YOLO model
model = YOLO("yolov8n.pt") # Fine-tune this model with data containing enemy body parts
# Function to capture the screen
def capture_screen():
import pygetwindow as gw
import pyautogui
# Capture the screen and convert it to OpenCV format
screen = pyautogui.screenshot()
return cv2.cvtColor(np.array(screen), cv2.COLOR_RGB2BGR)
# Function to analyze the image
def detect_enemy_regions(image):
results = model(image)
for result in results:
for box in result.boxes:
x1, y1, x2, y2 = map(int, box.xyxy[0]) # Coordinates for the bounding box
label = box.cls # Class label (e.g., head, chest, etc.)
confidence = box.conf # Confidence score
# Draw bounding box and label
cv2.rectangle(image, (x1, y1), (x2, y2), (0, 255, 0), 2)
cv2.putText(image, f"{label}: {confidence:.2f}", (x1, y1 - 10), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (255, 0, 0), 2)
return image
# Main loop
def main():
while True:
# Capture the screen
frame = capture_screen()
# Analyze the captured frame
analyzed_frame = detect_enemy_regions(frame)
# Display the analyzed frame
cv2.imshow("Enemy Detection", analyzed_frame)
# Exit the loop when 'q' is pressed
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cv2.destroyAllWindows()
if __name__ == "__main__":
main()
this is some of the main code, .py that i have in my ai csgo module. By using a pre trained ai, with 1000s' of tb of data, and images from csgo scenarios. It will automaticly detect set categories