전체 글32 [AWS] An error occurred (AccessDeniedException) 인스턴스에서 자신의 버킷에 접근하여 AWS의 rekognition API에 접근하여 결과를 보고싶은데(개복잡) 다음과 같은 에러가 출력된다면... An error occurred (AccessDeniedException) when calling the ~: ~ is not authorized to perform : ~ 권한이 없다는 데 무엇이 문제일까 알아보자. $ aws rekognition detect-labels \ --image '{"S3Object":{"Bucket":"bucket","Name":"file"}}' 내가 생성한 인스턴스에서 내 버킷에 접근하여 해당 이미지를 AWS API인 rekognition를 사용하고 싶다. 권한이 없다는 에러 메시지가 표시된다면 자신의 IAM 권한을 살펴보자... 2020. 2. 23. [AWS] 인스턴스에서 S3 접근, AWS CLI https://github.com/churchlab/millstone/wiki/Moving-Data-Between-S3-and-EC2-Instances 위 링크 참고하여 작성하였다. 고작 5단계에 불가하지만 실제 진행할려면 엄청난 설정이 필요하다... EC2 에서 Linux 인스턴스를 생성한 후... Linux instence에서 AWS CLI 설치 $ sudo apt-get install awscli 인스턴스 내에서 위 명령어를 사용하면 E: Unable to locate package awscli 라고 뜬다. (awscli 설치 검색하면 전부 저거 나옴 ㅡㅡ) 올바른 설치 방법은 다음과 같다. https://docs.aws.amazon.com/cli/latest/userguide/install-cli.. 2020. 2. 23. [AWS] EC2 Linux 인스턴스 생성 및 접속 Linux 인스턴스 생성 인스턴스 페이지에서 "인스턴스 시작" 버튼 클릭. AMI (Amazon Machine Image)들 중 자신이 원하는 이미지를 선택하자. 나는 Ubuntu Server 16.04 LTS를 선택했다. 그냥 인스턴스가 어떤건지 맛보기 생성을 하고 싶다면 'Amazon Linux'를 선택 (어차피 각 이미지가 어떤건지 설명되어 있으니 필요한거 선택하면 됨) 그 후 't2.micro' 로 '검토 및 시작' 버튼 클릭 (프리 티어 사용 가능!) 정보를 확인한 후 '시작하기' 버튼을 클릭하자. 나는 기존에 생성된 인스턴스가 있으므로 '기존 키 페어 선택'이 되지만 처음 생성하는 거라면 새로 키 페어를 생성해야 한다. '새 키 페어 생성' 을 선택하고 키 페어 이름을 적어주자. 그 다음 '키.. 2020. 2. 23. pytesseract 에러 + tesseract-ocr-kor Ubuntu 16.04 ERROR Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory. Failed loading language \'eng\' Tesseract couldn\'t load any languages! Could not initialize tesseract.') 환경변수를 추가해주자. export TESSDATA_PREFIX="/usr/share/tesseract-ocr/" $ source ~/.bashrc 한글을 검출하게 하고 싶다면... $ sudo apt-get install tesseract-ocr-kor usr/share/t.. 2020. 2. 10. 임시저장 http://blog.naver.com/kjpark79/220787920384 # make data using font import glob import io import os import random import cv2 import csv import numpy from PIL import Image, ImageFont, ImageDraw from scipy.ndimage.interpolation import map_coordinates from scipy.ndimage.filters import gaussian_filter SCRIPT_PATH = 'D:/conda_env/tensorflow-hangul-recognition-master' # Default data paths. label_file =.. 2020. 1. 8. 파이썬 GUI https://wikidocs.net/book/2165 위키독스 온라인 책을 제작 공유하는 플랫폼 서비스 wikidocs.net GUI 공부 참고 2019. 12. 2. kobuki_test #include "ros/ros.h" #include "std_msgs/UInt16.h" #include "std_msgs/UInt32.h" #include "std_msgs/Header.h" #include #include #include #include #include #include using namespace std; // Global variables where the sensory information will be temporary stored std_msgs::UInt32 header_time_stamp_secs[10000]; std_msgs::UInt32 header_time_stamp_nsecs[10000]; std_msgs::UInt16 sensors_time_stamp[10000];.. 2019. 11. 22. find_red.cpp #include #include #include #include #include using namespace cv; using namespace std; int main() { Mat image1; // 웹캠 원본 영상 VideoCapture cap(0); // open No. 0 camera vector save_poly; int iLowH, iHighH, iLowS, iHighS, iLowV, iHighV; if (!cap.isOpened()) { cout image1; //////////////////////Color Detection/////////////////////////// Mat imgHSV; cvtColor(image1, imgHSV, COLOR_BGR2HSV); //Convert th.. 2019. 11. 22. [Python] YOLO Style로 변환 # Img_000_0001=45,76,538,404 # 0.490625 0.579167 0.840625 0.841667 w = 640 # 이미지 가로 h = 480 # 이미지 세로 x1 = 45 # 좌측 최상단 x좌표 y1 = 76 # 좌측 최상단 y좌표 x2 = 538 # Box 가로 y2 = 404 # Box 세로 dw = 1./w dh = 1./h x = (float(x1) + float(x1) + float(x2))/2.0 y = (float(y1) + float(y1) + float(y2))/2.0 w = float(x2) h = float(y2) x = round(x*dw, 6) w = round(w*dw, 6) y = round(y*dh, 6) # 6자리 표시 h = round(h*dh, 6.. 2019. 11. 22. 이전 1 2 3 4 다음