본문 바로가기

[CV] Android 명함 인식 명함 인식입니다. 만들어놓고 다양한 환경에 조정할 시간이 많지 않아서 인식률이 완벽하지는 않습니다. 다행히 영상에 찍힌 정도는 인식이 됩니다. OpenCV Android 로 제작, 대충 네모를 찾아서 인식한 후 투영 변환합니다. 키워드 : Imgproc.findContours, Imgproc.getPerspectiveTransform, Imgproc.warpPerspective, Imgproc.approxPolyDP, Imgproc.Canny 등등 더보기
[aws] The request signature we calculated does not match the signature you provided. /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.2.11/lib/seahorse/client/plugins/raise_response_errors.rb:15:in `call': The request signature we calculated does not match the signature you provided. Check your key and signing method. (Aws::S3::Errors::SignatureDoesNotMatch) from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.2.11/lib/aws-sdk-core/plugins/s3_sse_cpk.rb:18:in `call' from /Library/Ruby/.. 더보기
[CV] 입력 영상을 RGB 3채널로 분리하기 [OpenCV - Android] 입력받은 영상의 각 색상 채널을 분리해서 싱글 채널로 만들어 작업하여야 할 때가 있다. Core.split 메소드를 이용해 RGBA로 분리하는 소스 List rgba = new ArrayList(); Core.split(in, rgba); Mat r = rgba.get(0); Mat g = rgba.get(1); Mat b = rgba.get(2); Mat a = rgba.get(3); // 입력이 A 채널도 포함할 경우 분리한걸 다시 합쳐서 4채널 매트릭스를 만드는 소스 List rgba = new ArrayList(); rgba.set(0, r); rgba.set(1, g); rgba.set(2, b); rgba.set(3, a); // A 채널도 합치고 싶을 경우 .. 더보기