|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
||||
|
||||
|
Re: Installing OpenCV
Darn it...the edit button is broken
![]() I have gotten OpenCV installed. I just used "apt-get install libopencv-dev". Hopefully that works. I have one problem now: I do not trust the Windows version of OpenCV. I had a working install, which got corrupted when I ran sample code! My team wants to stick with Windows, because that is the OS that everyone is familiar with and the Driver Station resides on. How should I use OpenCV? We are using Java, though I am sure that the language shouldn't make any difference. Should I run VIrtualBox on the DS, or should I get another DS laptop (We have a couple) to boot Ubuntu (Or maybe Debian, to make the install lighter), to run OpenCV? That laptop can also become the network robot coprocessor! |
|
#17
|
||||
|
||||
|
Re: Installing OpenCV
Building OpenCV on Windows is pretty straightforward if you have Visual Studio installed. Just run cmake and then compile the sln files.
We had delay issues connecting FFMPEG to the camera, and had to compile a custom version of it to make it work. I was able to use the FFMPEG build instructions found in the OpenCV source code to build the DLL successfully using MinGW. Check out the following links for the bug report: |
|
#18
|
||||
|
||||
|
Re: Installing OpenCV
Installing in Windows is quite straightforward. However, I find it hard to trust the install. It works at first, but breaks when you are in the middle of something big!
. At least, this is what happened to my installation! That's why I am interested in Linux! |
|
#19
|
||||
|
||||
|
Re: Installing OpenCV
The full installation crashes on you? I've never had problems with that... maybe try a reinstallation? Your download could've been interrupted at the very end and some file could be corrupt or something, as the repository is "quite a heavy download."
Also, make sure you're running a legal copy of Windows; I've found trouble installing many things if not with a legal copy because of some missing components. ![]() |
|
#20
|
||||
|
||||
|
Re: Installing OpenCV
Quote:
|
|
#21
|
|||
|
|||
|
Re: Installing OpenCV
Quote:
I would suspect instead that you had a misconfigured development environment (not having all the compiled binaries in your PATH, for example), a bad build, a corrupted source tree, etc., assuming you used a stable version of OpenCV. You concern me when your solution to your problem is to install OpenCV on Linux and run that on the Driver Station. Virtualization is very resource-intensive, and I would recommend not doing that on the master controller for the robot, especially with something running on VirtualBox as computationally intensive as computer vision. Instead, I would go back a few steps and look for the root cause of failure, and look at the documentation that OpenCV has on their website and fix your original Windows build. Just my $0.02. And one more suggestion: I would consider using OpenCV's Q&A site, where OpenCV experts are able to give you far better advice than me (and probably the rest of the CD community). |
|
#22
|
||||
|
||||
|
Re: Installing OpenCV
No. I used an OpenCV build that I found online, 2.4.3! I am pretty sure that isn't the problem. Also, I did mess around with the configuration a lot, to make it work. It worked until the binaries got corrupted!
|
|
#23
|
|||
|
|||
|
Re: Installing OpenCV
Quote:
Just last night, I installed the OpenCV 2.4.7 Java binaries on my machine and was doing some facial recognition stuff from Eclipse. While I wasn't using the C++ interface, it seemed that the binaries were right there with the self-extracting archive. I'm still confused as to how the binaries were corrupted, or why you were led to believe that the corruption of your binaries was related to Windows. There should be a reliability decrease if you use OpenCV on virtualized Linux on the same machine, not a reliability gain. |
|
#24
|
||||
|
||||
|
Re: Installing OpenCV
Anyways, I am now interested in using Apt for the installation. It seems a lot easier to do. After installing the Apt version, I was unable to compile anything. What did I do wrong? If anyone would like to help me, I might set up a skype or RDP connection!
|
|
#25
|
||||
|
||||
|
Re: Installing OpenCV
Quote:
It is also explained on our team's website: http://ratchetrockers1706.org/vision-setup/ We are working on a script that will install it all, and compile some of our vision code. Hopefully it will be up on our website before build season starts, so all you'll have to do is click run, wait a couple minutes, then opencv will be installed! If you have any questions, don't be afraid to ask. |
|
#26
|
||||
|
||||
|
I am actually interested in creating a bash script that will download most of the things using git, and compiles it by itself. That would be nice. However, that will only be possible after I get OpenCV running myself!
That tutorial that you forwarded to me seems legit. ![]() I think I will reinstall Ubuntu (or try in virtulbox) and then try this to make sure there is maximum consistency! I wish I had more Raspberry Pis! ![]() |
|
#27
|
|||
|
|||
|
Re: Installing OpenCV
How do you know the binaries were corrupt? Also, are you sure that the crash was due to the library and not something else, like the test program?
Greg McKaskle |
|
#28
|
||||
|
||||
|
Re: Installing OpenCV
Visual Studio told me that they were corrupt and unreadable, and if I continued, my computer crashed!
|
|
#29
|
|||
|
|||
|
Re: Installing OpenCV
Do you have more specifics on the message? For instance, if Visual Studio told you that memory was corrupted at a stack crawl including OpenCV, and then you continued, you would indeed crash, but that has nothing to do with the library or DLL on disk. If you think the library is corrupt, something like nm or ld with some options would probably be the right tool to determine if it is corrupt and what is wrong.
I've rarely seen a corrupted library. The instances I saw it were in the Win31 and Win95 days and the disk sector information was already bad when the library was installed. My guess is that you do not need to reinstall SW, but instead need to correct the usage of the library functions. Greg McKaskle |
|
#30
|
||||
|
||||
|
Re: Installing OpenCV
I know it was corrupt because it started working as soon as I copied new binaries into the installation folder!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|