목록CELLON Vision/Source Code (18)
박민혀기
Labtop 환경에서 실행가능#pragma comment(lib, "opencv_world453.lib")#pragma comment(lib, "opencv_world453d.lib")#define _CRT_SECURE_NO_WARNINGS#include #include #include "opencv2/opencv.hpp"#include #include #include #include #include #include #include #define WEB_CAM 0#define INPUT_PORT 22 //INPUT5#define INPUT_DATA_RESET 27 //INPUT4using namespace std;using namespace cv;unsigned int Accuracy_Percent..
/media/cellon 폴더에 있는 모든 폴더(파일 X)를 읽는다. #include #include int main() { std::string path = "/media/cellon"; try { for (const auto& entry : std::filesystem::directory_iterator(path)) { if (entry.is_directory()) { std::cout
Improvements over 1.5v CELLON ImageViewer Add Seoul / Asia Time Update(for Image File Name) Image Save in "~/Result" Folder after Examination Live Mode Update Resolution resol.txt R/W Issue Update Keyboard ctrl + A/a is Examination Key No ESC(Close Program) Save image with "320x240" resolution Plan of the CELLON I 1.7v Live mode save and load Image Viewer change close text "EXIT" Examination Res..
#include int main() { // 검은색 이미지 생성 cv::Mat blackImage(1080, 1920, CV_8UC3, cv::Scalar(0, 0, 0)); // 중앙 좌표 계산 int centerX = (blackImage.cols - 800) / 2; int centerY = (blackImage.rows - 600) / 2; // 이미지 로드 cv::Mat image(600, 800, CV_8UC3, cv::Scalar(255, 0, 0)); // 이미지 크기 조정 cv::resize(image, image, cv::Size(800, 600)); // 중앙에 이미지 삽입 cv::Rect roi(centerX, centerY, image.cols, image.rows); image...
Improvements over 1.4v Window(검사 출력 화면)가 사용 모니터 전체 해상도로 자동 맞춤 상태바 제거 바탕화면 단색 변경 #include #include #include #include "opencv2/opencv.hpp" #include #include #define WEB_CAM0 #define INPUT_PORT22//INPUT5 #define INPUT_DATA_RESET27//INPUT4 using namespace std; using namespace cv; unsigned intAccuracy_Percent[7]; unsigned intAccuracy_Percent_Temp[7]; intflag = -1; boolSetting_Mode_Flag = false; unsig..
Improvements over 1.3v OK버튼 누름시 모든 ROI 값 Update 되는 현상 해결 CELLON 마크를 눌러 Cancel 사용 시 바로 강제 종료 시 저장 안 됨 에러 해결 주변 색, 광량에 따른 카메라 자체의 색 보정 반응에 대한 안정성 알고리즘 적용★ 결과 데이터는 다음 포스팅에 업로드 예정 #include #include #include #include "opencv2/opencv.hpp" #include #include #define WEB_CAM0 #define INPUT_PORT22//INPUT5 #define INPUT_DATA_RESET27//INPUT4 using namespace std; using namespace cv; unsigned intAccuracy_Perc..
ROI 최소 각각 x, y 5Pixel 해상도 변경시 ROI Point Reset CELLON 마크를 눌러 Cancel 사용시 바로 강제 종료시 저장 안 됨 에러 #include #include #include #include "opencv2/opencv.hpp" #include #include #define WEB_CAM0 #define INPUT_PORT22//INPUT5 #define INPUT_DATA_RESET27//INPUT4 using namespace std; using namespace cv; unsigned intAccuracy_Percent[7]; unsigned intAccuracy_Percent_Temp[7]; intflag = -1; boolSetting_Mode_Flag = f..
네거티브 기능 추가(버튼) -> 모니터 해상도(1080p 확인) -> ROI, 결과, 해상도, Acq 값 파일 저장 및 불러오기 -> ROI 최적 크기 비교(자료화) -> 안정성(Aging~) ROI_flag => OK NP_flag => OK ROI_Point => OK Total => OK Good => OK Bad => OK ROI Image => OK Accuracy => OK resol => OK #include #include #include #include "opencv2/opencv.hpp" #include #include #define WEB_CAM0 #define INPUT_PORT22//INPUT5 #define INPUT_DATA_RESET27//INPUT4 using namespa..