Opencv And CAD

asked 2014-04-22 03:21:18 -0500

updated 2014-04-22 03:26:31 -0500

berak gravatar image

Hi i am newbie to opencv and just wanted to ask a question can i create a model for my object using solidworks , and import the whole model with it's features into opencv so that it can recognized from the images P.S. i can export it from solidworks into any extension thanks

edit retag flag offensive close merge delete



"... so that it can recognized from the images" - could you explain , what you are trying to do here ?

berak gravatar imageberak ( 2014-04-22 03:29:22 -0500 )edit

probably he wants do draw a 2D or 3D model of an object and try something like shape or contour based matching ...

StevenPuttemans gravatar imageStevenPuttemans ( 2014-04-22 04:55:29 -0500 )edit

hi, thanks berak and steven for reply what i am trying to do in brief, my object which i am trying to track and detect is a "cube" with some holes in it, and i read articles about training your classifier so that it can detect your object in the photos given, and i have seen some softwares that can read files exported in VRML language from CAD software like solidworks and produce a .xml files used by the classifier ex; Visp produced by inria labs so what i am asking now, can opencv do the same or i have to train the classifier ?

Michael Shenouda gravatar imageMichael Shenouda ( 2014-04-23 06:23:10 -0500 )edit
  • yes, you would have to train your own classifier from a lot of positive and negative example pictures
  • while there is 3d/opengl support in opencv, there are no importers at all, so you will be pretty much out on your own here
  • a "3d cube with a hole in" again seems to be a bit unlucky, as it does not have much features(e.g. corners) to train on. also if you meant any cascade classifiers, they are are quite sensitive to rotation, so if you trained it for one pose, it will have difficulties to recognize another.
  • before you reinvent the wheel (your cad program is probably much better at any 3d stuff, that what you or me could re-code there) - would your idea work on screenshots from that cad prog, too ?
  • if you're good with python - it is sure possible to use opencv from blender.
berak gravatar imageberak ( 2014-04-23 06:37:10 -0500 )edit

hi berak let me brief you about what i am doing -i have a robot arm manipulator with 5 DOF -i can to control the robot arm through matlab -i managed to build opencv library and include it in matlab so that i can call it freely -the camera is attached to the end-effector -i am trying to reach the cube so that robot arm can grab it, but when i am using any features detecting method, it usually compares wrong(non-similar) features so i was hoping to define by mean or another the object i am tracking so that it can be detected only and compares how features of the object are moving

Michael Shenouda gravatar imageMichael Shenouda ( 2014-05-04 03:35:01 -0500 )edit