본문 바로가기

전체 글

(104)
cv2.cvtColor PYTHON import cv2 img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
cv2.rectangle PYTHON import cv2 cv2.rectangle(img, pt1=(721, 183), pt2=(878, 465), color=(255, 0, 0), thickness=2)
OnSize 함수 호출 방법 MFC CRect rcWindowRef, rcWindowTarget; CWnd* pWnd = ((CTistoryApp*)AfxGetApp())->FindMainView(); if (pWnd != NULL) { pWnd->MoveWindow(&rcWindowRef); pWnd->SendMessage( WM_SIZE, (WPARAM)SIZE_RESTORED, MAKELPARAM(rcWindowRef.Width(), rcWindowRef.Height())); }
SQL 정렬 오름차순 내림차순 ASC DESC postgre SELECT table_name FROM information_schema.tables TABLE_NAME like '%vision_result%' order by TABLE_NAME asc 오름차순(ASC) 내림차순(DESC)
timespan, ctime 사용법 C/C++ MFC if (m_SelectedTime_Start < m_SelectedTime_End) { CTime tCurTime( m_SelectedTime_Start.GetYear(), m_SelectedTime_Start.GetMonth(), m_SelectedTime_Start.GetDay(), 0, 0, 0, 0); for (int i = 0; i < Search_term; i++) { temp_date[i].Format(_T("result_%04d_%02d_%02d"), tCurTime.GetYear(), tCurTime.GetMonth(), tCurTime.GetDay()); tCurTime += CTimeSpan(1, 0, 0, 0); } }
SQL 대/소문자 강제 변경 후 검색 LOWER, UPPER, LIKE 관련 검색어 POSTGRE select * from result_2020_10_20 where lower(model_name) like lower('%moDel%') [LOWER] : 모두 소문자로 변경 [UPPER] : 모두 대문자로 변경 [%AbCd%] : AbCd를 포함한 문장 [LIKE] : 해당 문장과 같은 것을 검색
SQL 관련 검색어 LIKE 사용법 postgre select * from RESULT where MODEL_LIST like '%MODEL%'
% 기호 출력하기 printf C/C++ #include int main(void) { printf("%\n"); // X: 이러면 퍼센트 기호가 출력되지 않음 // 퍼센트 기호 1개 출력하기 printf("%%\n"); // 퍼센트 기호 2개 출력하기 printf("%%%%\n"); // 퍼센트 기호 3개 출력하기 printf("%%%%%%\n"); // 숫자와 함께 출력 printf("%%%f\n", 99.99); // 실수를 소수점 2자리까지만 출력 printf("%%%.2f\n", 99.99); /* 출력 결과 % %% %%% %99.990000 %99.99 */ return 0; }