two versions of opencv

asked 2020-02-21 03:23:16 -0500

ali89 gravatar image

Hello How I can use tow version different of opencv in the same Visual Studio project? thank

edit retag flag offensive close merge delete


What do you need two versions?

LBerger gravatar imageLBerger ( 2020-02-21 03:26:11 -0500 )edit

i have a software developed in VS2010 when all code use opencv2.4, and i want develop this software but i want to use opencv4.2, so I have to use the two version at the same time!

ali89 gravatar imageali89 ( 2020-02-21 03:40:39 -0500 )edit

In Opencv 2.4:

print 'supra'


In Opencv 4.2.0:



You have to converted from 2.4 from 4.2

supra56 gravatar imagesupra56 ( 2020-02-21 04:22:05 -0500 )edit

There is link cv to cv2

supra56 gravatar imagesupra56 ( 2020-02-21 04:24:18 -0500 )edit

the software and very big and I want to keep the opencv 2.4, (There is link cv to cv2?)

ali89 gravatar imageali89 ( 2020-02-21 04:26:50 -0500 )edit

I'm away from pc.

supra56 gravatar imagesupra56 ( 2020-02-21 04:32:51 -0500 )edit

I guess you could package your existing code in a DLL (in a separate VS project), statically linking old OpenCV with that.

mvuori gravatar imagemvuori ( 2020-02-21 04:52:56 -0500 )edit

i cant make this because i want to make a modification everyday

ali89 gravatar imageali89 ( 2020-02-21 07:45:20 -0500 )edit

I don't think opencv 4.2 is compatible with VS2010

LBerger gravatar imageLBerger ( 2020-02-21 07:56:22 -0500 )edit