|
Multi Projector System 4
|
Handles auto-calibration of projector overlap using a camera. More...
Public Member Functions | |
| __init__ (self, int camera_index=0) | |
| Constructor & Destructor Documentation. | |
| Optional[np.ndarray] | capture_image (self) |
| Member Function Documentation. | |
| Optional[int] | calculate_overlap (self, np.ndarray img_left, np.ndarray img_right) |
| Member Function Documentation. | |
| int | simulate_calibration (self, int image_width, int current_overlap) |
| Member Function Documentation. | |
Public Attributes | |
| camera_index | |
| flann | |
Handles auto-calibration of projector overlap using a camera.
Detailed Description This class uses computer vision to detect misalignment between two projectors. It analyzes camera-captured images using SIFT feature detection and FLANN-based matching to calculate horizontal displacement between left and right projected images.
Public Member Functions:
Public Attributes:
| calibration.CalibrationManager.__init__ | ( | self, | |
| int | camera_index = 0 |
||
| ) |
Constructor & Destructor Documentation.
Initializes the calibration manager.
| camera_index | Camera device index (default: 0) |
| Optional[int] calibration.CalibrationManager.calculate_overlap | ( | self, | |
| np.ndarray | img_left, | ||
| np.ndarray | img_right | ||
| ) |
Member Function Documentation.
Calculates horizontal overlap between two images using SIFT features.
| img_left | Image from left projector only |
| img_right | Image from right projector only |
Calculates the horizontal overlap between two images using SIFT features. img_left: The captured image when ONLY the left projector is on. img_right: The captured image when ONLY the right projector is on.
| Optional[np.ndarray] calibration.CalibrationManager.capture_image | ( | self | ) |
Member Function Documentation.
Captures a single frame from the camera.
Captures a single frame from the camera. Returns None if capture fails.
| int calibration.CalibrationManager.simulate_calibration | ( | self, | |
| int | image_width, | ||
| int | current_overlap | ||
| ) |
Member Function Documentation.
Simulates the calibration process for testing.
| image_width | Input image width (unused) |
| current_overlap | Current overlap value |
Simulates the calibration process. Returns the suggested adjustment to the overlap.