Project

General

Profile

User Manual » History » Version 6

Nathanael Muin JUSTIN, 01/09/2025 01:51 PM

1 6 Nathanael Muin JUSTIN
> h2. [[Wiki]] | [[Team Members]] | [[Meeting Documentation]] | [[Functional & Non-Functional Requirements]] | [[The Wiki]] | [[Project Setup Guide]] | [[Math Document]] | [[UML Diagrams]] | [[Results]]
2 2 Nathanael Muin JUSTIN
3
4 1 Nathanael Muin JUSTIN
h1. User Manual
5 4 Nathanael Muin JUSTIN
6
*1. Introduction*
7
This project demonstrates how to display and “mesh” an image across two adjacent projectors, producing one larger, seamless image. It does so by applying a “mask” to the overlapping region so that the final displayed image appears continuous. The code uses OpenCV and NumPy for image processing and relies on python-dotenv for reading configuration variables (e.g., image path, projector spacing) from a .env file.
8
9
*2. System Requirements*
10
* Operating System: Mac OS (recommended/tested)
11
* Python: 3.x (e.g., Python 3.9+)
12
* Required Python Libraries:
13
# numpy==2.2.0
14
# opencv-python==4.10.0.84
15
# python-dotenv==1.0.1
16
17 5 Nathanael Muin JUSTIN
h1. Setup
18 4 Nathanael Muin JUSTIN
19
*Step 1: Configure the Environment*
20
* Locate the image_configuration.env file and adjust the settings if needed:
21
* IMAGE_FILE_PATH: Path to the image you want to project.
22
* SIDE: Set as either left or right to specify the projector's position.
23
* DISTANCE_BETWEEN_PROJECTOR_CM: Distance between the two projectors in centimeters.
24
* PROJECTION_WIDTH_CM: The total width of the projection area in centimeters​.
25
26
*Step 2: Preparing the Code*
27
* Ensure the main.py script is in the working directory.
28
* Ensure the required images (e.g., Left.jpg, Right.jpg) are properly placed as referenced in the code.
29
30
31 5 Nathanael Muin JUSTIN
h1. Running the Application
32 4 Nathanael Muin JUSTIN
33
# Open a terminal in the project directory.
34
# Run the following command to execute the script:
35
<pre><code class="python">
36
# ./run.sh
37
</code></pre>
38
# The script will automatically:
39
* Load the configuration from image_configuration.env.
40
* Process the images using the settings provided.
41
* Split and align the image for projection on two projectors.
42
43 1 Nathanael Muin JUSTIN
* *Alignment:* The software handles automatic alignment of the image sections for both projectors.
44
* *Projection Area:* Adjust the position of the projectors to ensure proper overlapping at the image boundaries.
45 5 Nathanael Muin JUSTIN
46
47
h1. Troubleshooting
48
49
*Issue 1: Misaligned Images*
50
* Ensure the DISTANCE_BETWEEN_PROJECTOR_CM and PROJECTION_WIDTH_CM are accurate.
51
* Verify both projectors are calibrated and aligned physically.
52
53
*Issue 2: Missing Libraries*
54
* Install the required libraries using:
55
<pre><code class="python">
56
pip install -r requirements.txt
57
</code></pre>
58
59
*Issue 3: Image File Not Found*
60
* Verify that the image file path in *image_configuration.env* matches the image's location.