본문 바로가기

Programming/image processing

Install ubuntu on asus tuf a15 fa506qm ucsi_acpi USBC000:00: PPM init failed (-110) Log 2021.05.05 working fine, but after a few reboot, screen goes black 2021.05.06 I still have problem not working after reboot. windows 10 is working fine. 2021.05.10 1. windows 2. ubuntu dual boot working fine. ubuntu sometimes shows PPM init failed again 2021.05.11 after some updates, working fine. Summary 1. install ubuntu on asus tuf a15 fa506qm .. 더보기
nvidia-smi has failed nvidia-smi has failed because it couldn't communicate with the nvidia driver. 위와 같은 에러가 발생했다면, 1. sudo apt install nvidia-cuda-toolkit 2. sudo apt --installed list | grep nvidia-driver 3. lsmod | grep nvidia 위 상태 확인 결과 설치가 정상인데 안된다면, 1. sudo apt remove nvidia-driver-버전 2. sudo apt autoremove 이후 sudo apt install autoinstall 이나 특정버전을 설치해 본 후 재부팅!!! 그러면 정상 작동함. great! 더보기
OpenCVError: Unsupported format or combination of formats 문제 해결 사용환경: 리눅스 우분투 9.10 커널: 2.6.31 openCV: 2.0 Learning openCV 제대로 배우기 예제 2-10를 예를 들자면 //usage: ex2-10 // argv[1]: input video file name // argv[2]: output video file name #include "cv.h" #include "highgui.h" int main(int argc, char* argv[]) { CvCapture* capture = cvCreateFileCapture( argv[1]); if(!capture) return -1; IplImage* bgr_frame = cvQueryFrame(capture); //video initialize double fps = cvGetC.. 더보기
openCV 동영상/카메라 관련내용 정리 동영상 동영상/카메라 열기 CvCapture 구조체 - 카메라 또는 동영상 파일로 부터 프레임을 받아오는데 필요한 정보를 가지고 있음 *MPG, AVI 파일 다루기 #define cvCaptureFromFile cvCreateFileCapture -CvCapture* cvCreateFileCapture(const char *filename) / cvCaptureFromFile param : filename - 동영상 파일 return : 실패 -NULL (파일이 없거나, 코덱이 없는 경우) * 카메라로부터 영상 받기 #define cvCaptureFromCAM cvCreateCameraCapture -CvCapture* cvCreateCameraCapture(int index) /cvCaptureFrom.. 더보기
opencv 에러 HIGHGUI ERROR: V4L2 문제에 관해 우분투 9.04를 쓰다가 9.10으로 업그레이드 하면서 캠에 관련된 프로그램이 전부 실행하면 다음과 같은 에러나 가왔다 HIGHGUI ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV Unable to stop the stream.: Bad file descriptor HIGHGUI ERROR: V4L: Pixel format of incoming image is unsupported by OpenCV Could not initialize capturing... 이거 어떻게 해결할려나 하고 여기 저기 수소문 했는데 그냥 갑자기 다시 된다... 이런 황당한 경우가... -_-;; 재부팅도 해봤었는데 xawtv로는 캠이 뜨는데 컴파일 .. 더보기
우분투(리눅스) ubuntu 8.10 openCV 2.0 설치하기 자료들을 찾아보면 역시 setup.exe 파일만 딱 눌러서 깔던 윈도우랑은 달라서 설치하기가 조금 까다롭다 http://opencv.willowgarage.com/wiki/InstallGuide_Linux 여기 있는 자료로만 깔려고 하면 각 종 리눅스마다 설정이 틀려질 수 가 있는데 그에 대한 구체적인 설명을 따로 찾아 들어가야만한다. 일단 기본설정들을 보면 1. Getting OpenCV source code from the repository 2. Compilation 3. Path Configuration 4. Test OpenCV 하지만, openCV를 수행해보기에 앞서 몇가지를 깔아주여야 한다. 0. 환경구축 이라고 해주자 그 명령어를 참고한 곳은 http://ttti07.egloos.com/3.. 더보기