Basic Examples

This page provides practical examples for common UESynth usage patterns. These examples are perfect for getting started and understanding the core workflows.

Simple Image Capture

Single RGB Capture

from uesynth import UESynthClient
import cv2

# Basic image capture
with UESynthClient() as client:
    # Position camera
    client.camera.set_location(x=0, y=100, z=50)
    client.camera.set_rotation(pitch=-15, yaw=0, roll=0)
    
    # Capture image
    image = client.capture.rgb(width=1920, height=1080)
    
    # Save image
    cv2.imwrite("captured_image.png", image)
    print("✅ Image captured and saved!")

Multi-Modal Capture

Camera Movement

Camera Orbit

Camera Path

Object Manipulation

Object Positioning Dataset

Object Rotation Study

Scene Variations

Lighting Conditions

Weather Variations

Field of View Studies

FOV Comparison

Batch Processing

Systematic Dataset Creation

Error Handling Examples

Robust Capture with Retry

These examples demonstrate the fundamental patterns for using UESynth effectively. Start with these basics and then explore more advanced features as your needs grow.

Next Steps

Last updated