George
George

Reputation: 41

Animation with C++

is there anyway to build rich animation with C++? I have been using OpenCV for object detection, and I want to show the detected object with rich animation, Is there any easy way to realize this? I know flash can be used to easily build rich animation. But can flash be reliably integrated with C++ and How?

Also, Can OpenGL help me with this? To my knowledge, OpenGL is good for 3D rendering. But I am more interested in showing 2D animations in an image. So I am not sure whether this is a right way to go.

Another question, how are those animations in augmented reality realized? What kind of library are they using?

Thank you in advance.

Upvotes: 0

Views: 1164

Answers (2)

ssegvic
ssegvic

Reputation: 3142

It appears to me that you wish to produce an animated demo of your processing results. If I am wrong, let me know.

The simplest way to produce a demo of a vision algorithm is to dump the results to a distinct image file after each processed frame. After the processing session, these individual image files are employed to prepare the video using e.g. mencoder. I employed such procedure to prepare this.

Of course, your program can also produce OpenGL. Many people dealing with 3D reconstruction do that. However, in my opinion that would be an overkill for simple 2D detection. Producing flash would be an even greater overkill.

Upvotes: 0

Justin
Justin

Reputation: 86729

Its difficult to tell if this answer will be relevant, but depending on what sort of application you are creating you may be able to use Simple DirectMedia Layer.

This is a cross-platform 2D and 3D (via OpenGL) media library for C, C++ and many other compatible languages.

Upvotes: 1

Related Questions