How can OpenCV2 (specifically version 2.4.9.1) be installed on Ubuntu 18.04?











up vote
1
down vote

favorite












I have a large program that is dependent on OpenCV2. The ultimate aim is to modify that program such that it is dependent on OpenCV3 or OpenCV4, but I do not have the time to learn how to rewrite the program at this time, so...



How might OpenCV2 (specifically version 2.4.9.1) be installed on Ubuntu 18.04?



The dependencies of the program as they are now are as follows:



sudo apt install  
python-dev
libasound-dev
python-pyaudio
libopencv-dev
python-opencv
python-tk


The key packages for OpenCV 2.4.9.1 needed are as follows:




  • python-opencv=2.4.9.1+dfsg-1.5ubuntu1

  • libopencv-dev=2.4.9.1+dfsg-1.5ubuntu1


How might this be done? Are there options I have not considered?










share|improve this question






















  • It seems to very difficult as you need to download packages from 16.04 LTS. Also note that latest version with security updates is 2.4.9.1+dfsg-1.5ubuntu1.1. So consider to use 16.04 LTS distribution or schroot or Docker container with it.
    – N0rbert
    Nov 19 at 20:22















up vote
1
down vote

favorite












I have a large program that is dependent on OpenCV2. The ultimate aim is to modify that program such that it is dependent on OpenCV3 or OpenCV4, but I do not have the time to learn how to rewrite the program at this time, so...



How might OpenCV2 (specifically version 2.4.9.1) be installed on Ubuntu 18.04?



The dependencies of the program as they are now are as follows:



sudo apt install  
python-dev
libasound-dev
python-pyaudio
libopencv-dev
python-opencv
python-tk


The key packages for OpenCV 2.4.9.1 needed are as follows:




  • python-opencv=2.4.9.1+dfsg-1.5ubuntu1

  • libopencv-dev=2.4.9.1+dfsg-1.5ubuntu1


How might this be done? Are there options I have not considered?










share|improve this question






















  • It seems to very difficult as you need to download packages from 16.04 LTS. Also note that latest version with security updates is 2.4.9.1+dfsg-1.5ubuntu1.1. So consider to use 16.04 LTS distribution or schroot or Docker container with it.
    – N0rbert
    Nov 19 at 20:22













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have a large program that is dependent on OpenCV2. The ultimate aim is to modify that program such that it is dependent on OpenCV3 or OpenCV4, but I do not have the time to learn how to rewrite the program at this time, so...



How might OpenCV2 (specifically version 2.4.9.1) be installed on Ubuntu 18.04?



The dependencies of the program as they are now are as follows:



sudo apt install  
python-dev
libasound-dev
python-pyaudio
libopencv-dev
python-opencv
python-tk


The key packages for OpenCV 2.4.9.1 needed are as follows:




  • python-opencv=2.4.9.1+dfsg-1.5ubuntu1

  • libopencv-dev=2.4.9.1+dfsg-1.5ubuntu1


How might this be done? Are there options I have not considered?










share|improve this question













I have a large program that is dependent on OpenCV2. The ultimate aim is to modify that program such that it is dependent on OpenCV3 or OpenCV4, but I do not have the time to learn how to rewrite the program at this time, so...



How might OpenCV2 (specifically version 2.4.9.1) be installed on Ubuntu 18.04?



The dependencies of the program as they are now are as follows:



sudo apt install  
python-dev
libasound-dev
python-pyaudio
libopencv-dev
python-opencv
python-tk


The key packages for OpenCV 2.4.9.1 needed are as follows:




  • python-opencv=2.4.9.1+dfsg-1.5ubuntu1

  • libopencv-dev=2.4.9.1+dfsg-1.5ubuntu1


How might this be done? Are there options I have not considered?







18.04 opencv






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 19 at 17:45









BlandCorporation

273414




273414












  • It seems to very difficult as you need to download packages from 16.04 LTS. Also note that latest version with security updates is 2.4.9.1+dfsg-1.5ubuntu1.1. So consider to use 16.04 LTS distribution or schroot or Docker container with it.
    – N0rbert
    Nov 19 at 20:22


















  • It seems to very difficult as you need to download packages from 16.04 LTS. Also note that latest version with security updates is 2.4.9.1+dfsg-1.5ubuntu1.1. So consider to use 16.04 LTS distribution or schroot or Docker container with it.
    – N0rbert
    Nov 19 at 20:22
















It seems to very difficult as you need to download packages from 16.04 LTS. Also note that latest version with security updates is 2.4.9.1+dfsg-1.5ubuntu1.1. So consider to use 16.04 LTS distribution or schroot or Docker container with it.
– N0rbert
Nov 19 at 20:22




It seems to very difficult as you need to download packages from 16.04 LTS. Also note that latest version with security updates is 2.4.9.1+dfsg-1.5ubuntu1.1. So consider to use 16.04 LTS distribution or schroot or Docker container with it.
– N0rbert
Nov 19 at 20:22















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1094284%2fhow-can-opencv2-specifically-version-2-4-9-1-be-installed-on-ubuntu-18-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1094284%2fhow-can-opencv2-specifically-version-2-4-9-1-be-installed-on-ubuntu-18-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Ellipse (mathématiques)

Quarter-circle Tiles

Mont Emei