Open head-iie-vnr opened 3 months ago
tried installing vott directly & using docker. Both were giving issues.
tried installating labelImg but it was crashing when I try to scroll on the image.
Here are the steps to install and run VoTT using Docker:
If Docker is not already installed on your system, you can install it using the following commands:
Update your package list and install prerequisites:
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Add the Docker repository to APT sources:
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Update the package database with Docker packages:
sudo apt update
Install Docker:
sudo apt install docker-ce
Start and enable Docker service:
sudo systemctl start docker
sudo systemctl enable docker
cortexia/vott
Docker Imagecortexia/vott
Docker Image:docker pull cortexia/vott
cortexia/vott
Docker Container:docker run -d -p 3000:3000 cortexia/vott
http://localhost:3000
You should see the VoTT interface, and you can start creating a new project and annotating your images.
List running containers:
docker ps
Stop a running container:
docker stop <container_id_or_name>
Remove a container:
docker rm <container_id_or_name>
Remove the VoTT Docker image:
docker rmi mcr.microsoft.com/vott
Persistent Storage: If you want to ensure your annotations and projects persist across container restarts, you can map a local directory to a directory inside the container using Docker volumes.
docker run -d -p 3000:3000 -v /path/to/local/directory:/data mcr.microsoft.com/vott
Updating VoTT: To update VoTT, you will need to pull the latest Docker image and run a new container.
docker pull mcr.microsoft.com/vott
docker run -d -p 3000:3000 mcr.microsoft.com/vott
If using the cortexia/vott
image doesn't work as expected, you can alternatively install and run VoTT using npm.
sudo apt update
sudo apt install nodejs npm
npm install -g vott
vott
Regardless of the method you choose for VoTT, you will need to convert your PDF to images. Use the pdftoppm
command as described earlier:
sudo apt-get install poppler-utils
pdftoppm -png ABC_1Floor.pdf output
This will generate output-1.png
, output-2.png
, etc., for each page in the PDF.
Open VoTT:
vott
from npm, or go to http://localhost:3000
if using Docker.Create a New Project:
output-1.png
, output-2.png
, etc.).Annotate Images:
Save and Export Annotations:
By following these steps, you should be able to annotate your floor plan images and save the core data and metadata using VoTT. If you encounter any further issues or have additional questions, feel free to ask for more assistance.
Write script
https://github.com/Vignana-Jyothi/vnr-campus-navigator/blob/main/annotation_tool/image_annotate.py
To annotate. It generated json in the below format when saved [ { "coordinates": [ 638, 111, 868, 277 ], "room_number": "A-206", "room_type": "LAB", "floor_number": "1" } ](
chatgpt is also able to generate the JSON well.
sudo apt-get update sudo apt-get install poppler-utils
pdftoppm -png ABC_1Floor.pdf output pdftoppm -jpeg ABC_1Floor.pdf output