Ask Your Question
0

opencv test.cpp program not enough parameters on vs2010

asked 2013-09-01 10:15:16 -0600

galbert gravatar image

Hi, I am new to opencv and I've followed http://docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html#windows-installation and http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html#windows-visual-studio-how-to

the problem is that whenever i build the test program it's says in the console not enough parameters have I done something wrong or did I miss important details I don't know which is which and I am using version 2.4.6 and don't know due to the fact I am still a beginner in opencv

edit retag flag offensive close merge delete

Comments

2

you probably should call it like:

my.exe d:\video\file1.avi d:\video\file2.avi 60 600 // no idea if 60 is a good psr threshold

berak gravatar imageberak ( 2013-09-01 10:36:31 -0600 )edit

you mean by renaming the executable file??

galbert gravatar imagegalbert ( 2013-09-01 10:58:13 -0600 )edit

whaa, no.

(sorry my error, 'call' might have been misleading.)

let's try it the other way round: how are you running it ?

berak gravatar imageberak ( 2013-09-01 11:06:19 -0600 )edit

oh,,, i am running it by pressing ctrl+f5 i am in debug mode and using 32bit vs2010... will it help?

galbert gravatar imagegalbert ( 2013-09-01 11:09:01 -0600 )edit
2

in the property sheet, there's a debugging section, you can set the cmdline args there.(d:\video\file1.avi d:\video\file2.avi 60 600)

or open a cmd window, cd to where your exe is and type

name_of_my_program d:\video\file1.avi d:\video\file2.avi 60 600

berak gravatar imageberak ( 2013-09-01 11:14:18 -0600 )edit

I do as you told in opening a cmd window but it is saying that

no suitable location found for browsing database and intellisense files

Visual C++ did not find a suitable location to store its browsing database and IntelliSense files for the solution "E:\C++ programs\test\test.sln."

Visual C++ examined the folder "E:\C++ programs\test." This folder is not suitable because of the following: The browsing database in this directory is open by another instance of Visual Studio and cannot be reopened. User Gary on GARY2-PC has it open.

Because a 'Fallback Location' was not specified in the C++ Advanced Options, Visual C++ is attempting to use your temporary directory.

Visual C++ examined the folder "C:\Users\Gary\AppData\Local\Temp\VC++\test-cde080b2." This folder is not suitable becaus

galbert gravatar imagegalbert ( 2013-09-01 11:31:07 -0600 )edit

e of the following: The browsing database in this directory is open by another instance of Visual Studio and cannot be reopened. User Gary on GARY2-PC has it open.

The 'Fallback Location' is configurable under C++ Advanced Options.

Press OK to continue without C++ browsing information and IntelliSense.

and what you mean by debugging section in the property sheet you mean by the linker part?

galbert gravatar imagegalbert ( 2013-09-01 11:32:05 -0600 )edit
1

hey, no idea why you run into such trouble running a simple console prog

image description // sorry, 2008 here

berak gravatar imageberak ( 2013-09-01 11:50:48 -0600 )edit

I don't even know myself why I am having these kinds of error or what is going, I am at a loss... and thanks for helping me berak and I appreciate your help even though I am really a beginner, I will continue it tomorrow or later on as I have to go to school I will comment later what would be the outcome.

galbert gravatar imagegalbert ( 2013-09-01 12:11:10 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-09-12 04:59:04 -0600

galbert gravatar image

sorry been busy with school and stuff, forgot to update. Anyways I found my error.... a noobish mistake, i did not place my command argument within where my working directory is. It's now working thanks for the help

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-09-01 10:15:16 -0600

Seen: 557 times

Last updated: Sep 12 '13