Skip to content

abirbensoltane/Car-photo-generation-from-Carla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Car-photo-generation-from-Carla

Dataset generation for camera pose estimation with Carla simulator and python. This script should be placed under examples of PythonAPI of carla simulator folder. Carla version used is 0.9.11 and python 3.7
This code takes photos of a car in different angles and positions.
You have 18 car models by default in carla but you can add other car models.
It is based on client_bounding_boxes.py
To change the car model you have to change the number n which is in [0..18]
car_bp = self.world.get_blueprint_library().filter('vehicle*')[n]
To change the location of the car you have to change n in this line by a number
spawn_point=self.world.get_map().get_spawn_points()[n]

Carla installation (download carla (install dependencies with python -m pip install -r requirements.txt) , python (make sure it's x64) and pip under windows with curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py and then python get-pip.py, to install requiered libs with pip install -r requirements.txt and then install mathutils with pip install mathutils) launch program from cmd with python dataset_generation.py this commands are valid for linux

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages