Recognition of blue rectangle on a white paper that simulate buildings and red triangle which give a POV for the camera in Unity
Corentin GAUTIER - Wesley PETIT
- Images processing (expansion, convert gray image)
- Recognition of blue rectangle and red triangle
- Smooth movment of the camera in Unity
Exemple of use case : Video
- Import the Project on your PC
- Launching with Unity 2021.3.11
- Open Datagora scene
- Setup your HSV value to recognize your building's color
- You can modify the layout of your buildings, this will update in unity
- Launch "Create City" to visualize the city in unity
- Set the red triangle next to a building
- Launch "Visualize at red triangle". Then you got a smooth movement around the building selected
- Install library OpenCV
To use on Visual studio code :- Create a project folder
- Ctrl + Shift + P to open command and search "C/C++ : Edit Configurations JSON"
- Add in the JSON file an including path of the OpenCV library, it should be in "usr/local/include/opencv4/**"
- Write your code and compile it with "clang++ -std=c++11 nameOfyourFile.cpp -o w
pkg-config --cflags --libs opencv
"