Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

JangoRaspberryPi/vrep-api-python-opencv

Open more actions menu
 
 

Repository files navigation

V-Rep API python OpenCV demo

Demo for track green object by OpenCV.

Scenario:

  • Vision Sensor v0 get image from 3d scene
  • python script get image, and handle by OpenCV - recognise any green object and make marker over it
  • python script return image to Vision Sensor 'v1'

Screenshot:

Video:

File:

  • scene.ttt V-REP scene (based on rosTopicPublisherAndSubscriber1.ttt)
  • handle_vision_sensor.py - python script for handle image from V-REP

Scene:

  • v0 - Vision Sensor - as source image for OpenCV
  • v1 - Vision Sensor - checked as "External input" - for output from python

Install:

Copy in this folder following files from V-REP:

  • remoteApi.so (from V-REP_PRO_EDU_V3_2_2_64_Linux/programming/remoteApiBindings/lib/lib/64Bit)
  • vrep.py (from V-REP_PRO_EDU_V3_2_2_64_Linux/programming/remoteApiBindings/python/python)
  • vrepConst.py (from V-REP_PRO_EDU_V3_2_2_64_Linux/programming/remoteApiBindings/python/python)

Start:

  1. Files remoteApi.so, vrep.py, vrepConst.py have to be copied in this folder
  2. Start V-REP, open scene.ttt file
  3. Start Simulation
  4. In console start python script: $ python handle_vision_sensor.py
  5. Image in v1 Vision sensor - from python

About

Demo V-REP API python OpenCV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.