1
opencv로 "fruits.jpg"라는 사진을 여는 프로그램을 작성했습니다.opencv-visualstudio2010 x64 win7에서 이미지를 업로드하는 방법 ..
이 코드를 실행할 때 결과적으로 표시하려는 그림이있는 창 대신 빈 창이 표시됩니다. 다음과 같이
코드입니다 : 내가 경로, 라이브러리 디렉토리 등을 설정하기 위해 노력했다
911228.cpp : Defines the entry point for the console application.
//
#include "opencv\cv.h"
#include "opencv\cv.h"
#include "opencv\cvaux.h"
#include "opencv\cxcore.h"
#include "cv.h"
#include "stdafx.h"
#include "highgui.h"
int main(int argc, const char** argv[])
{
IplImage* img =0;
img= cvLoadImage("D:\open\fruits.jpg");
cvNamedWindow("Example2.1",CV_WINDOW_AUTOSIZE);
cvShowImage("Example2.1",img);
cvWaitKey(0);
cvReleaseImage(&img);
cvDestroyWindow("Example2.1");
return 0;
}
- ... 둘째 나는 [] ARGV의 의미를받지 못했습니다 ... argv []는 무엇입니까?
- 은 내가 내 원래 그림이 많은 행과 열 ...
나는 Visual Studio 및 OpenCV의에 초보자를 얼마나 코드를 말할 경우, 도와주세요.
덕분에 너무 ... 그것은 나를 위해 일한 IMG = cvLoadImage (:) "D는 \\ fruits.jpg를 열고 \\"; 다시 한번 감사드립니다 ... 신의 축복을 ... BOAZ JAN ... (numair) – user1071107