Skip to content

Simulate 3D to 2D projection in CoppeliaSim with the focal length method. Convert points for computer vision and virtual environments. Easy integration, practical demos, and contributions welcome.

Notifications You must be signed in to change notification settings

beatriz-emiliano/3DTo2DProjectionCoppelia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using CoppeliaSim for the calculation of 3D to 2D projection

Guide

Description

This repository provides an implementation in CoppeliaSim for the calculation of 3D to 2D projection using the focal length method. The goal is to transform three-dimensional points into two-dimensional pixel coordinates, simulating the projection process in a virtual camera. The method takes into account the camera's focal length to compute pixel coordinates corresponding to 3D points, crucial in various applications such as computer vision and virtual environment simulations.

overview

Features

  • Conversion of 3D points to 2D pixel coordinates with python.
  • Simulation of projection using the focal length method.

Technologies used:

  • Python 3.x
  • CoppeliaSim
  • NumPy

Installations:

  • CoppeliaSim
Use the instructions on the website, I used the EDU version
  • ZeroMQ ZeroMQ is a messaging library that provides asynchronous communication capabilities between processes. To install the ZeroMQ remote API for CoppeliaSim:
$ python3 -m pip install coppeliasim - zmqremoteapi - client

Application

  • Open the CoppeliaSim software:
$ cd ~/CoppeliaSimPath
$ ./coppeliaSim.sh
  • Load the scene:
File > Open scene... >> projetcion.ttt
  • Check the specifications of your vision sensor and adjust in the code, by default, the scene values are these:

overview

  • Run the code
$ cd ~/3Dto2DProjectionCoppelia/script
$ python3 projection.py

About

Simulate 3D to 2D projection in CoppeliaSim with the focal length method. Convert points for computer vision and virtual environments. Easy integration, practical demos, and contributions welcome.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages