전체 글
-
[백준][python] 10890 : 알파벳 찾기알고리즘/Baekjoon 2022. 7. 27. 15:50
https://www.acmicpc.net/problem/10809 10809번: 알파벳 찾기 각각의 알파벳에 대해서, a가 처음 등장하는 위치, b가 처음 등장하는 위치, ... z가 처음 등장하는 위치를 공백으로 구분해서 출력한다. 만약, 어떤 알파벳이 단어에 포함되어 있지 않다면 -1을 출 www.acmicpc.net 1. for문 s = list(map(str, input())) alphabet ='abcdefghijklmnopqrstuvwxyz' for i in alphabet: if i in s: print(s.index(i), end=' ') else: print(-1,end=' ') 2. find()로 바로 찾기 s = list(map(str, input())) alphabet ='abcd..
-
[백준][python] 4673번: 셀프 넘버알고리즘/Baekjoon 2022. 7. 27. 15:01
https://www.acmicpc.net/problem/4673 4673번: 셀프 넘버 셀프 넘버는 1949년 인도 수학자 D.R. Kaprekar가 이름 붙였다. 양의 정수 n에 대해서 d(n)을 n과 n의 각 자리수를 더하는 함수라고 정의하자. 예를 들어, d(75) = 75+7+5 = 87이다. 양의 정수 n이 주어졌을 때, www.acmicpc.net 규칙을 알아낼려고 방정식을 계속 세워봤지만 해결이 안됐음.. set 집합형으로 문제를 푸는 방식이 있었다. 전체숫자 1~10000까지 미리 정의하고 생성자 있는 수를 차집합으로 빼는 방법이다. 그리고 각 자리 숫자를 더할때 나눗셈, 나머지 연산자가 아니라 각 자리 숫자를 문자열로 나누어서 그걸 다시 숫자로 바꾸어서 더하는 방식이다. natural_..
-
[Spring] 예제 만들기BackEnd/Spring 2022. 7. 22. 22:44
https://www.inflearn.com/course/%EC%8A%A4%ED%94%84%EB%A7%81-%ED%95%B5%EC%8B%AC-%EC%9B%90%EB%A6%AC-%EA%B8%B0%EB%B3%B8%ED%8E%B8/dashboard 스프링 핵심 원리 - 기본편 - 인프런 | 강의 스프링 입문자가 예제를 만들어가면서 스프링의 핵심 원리를 이해하고, 스프링 기본기를 확실히 다질 수 있습니다., - 강의 소개 | 인프런... www.inflearn.com - Java 11 - IDE: IntelliJ * 스프링 없는 순수 자바로만 개발 진행 - 스프링 부트 스타터를 이용하여 스프링 프로젝트 생성 https://start.spring.io/ - 비즈니스 요구사항과 설계 1) 회원 도메인 설..
-
[openCV] tesseract를 이용해서 이미지의 텍스트 추출플젝기록/졸업 프로젝트 2022. 5. 23. 22:36
1. tesseract 다운 받기 GitHub - UB-Mannheim/tesseract: Tesseract Open Source OCR Engine (main repository) Tesseract Open Source OCR Engine (main repository) - GitHub - UB-Mannheim/tesseract: Tesseract Open Source OCR Engine (main repository) github.com 2. 환경변수 설정 3. cmd 창에 pytesseract 설치 pip install pytesseract 4. cmd 창 열고 다음 명령어 실행 분명 방법은 맞는데 .... 왜 숫자 인식이 안될까 ? tesseract test2.png test4 -l kor 5. ..
-
[AWS] ec2에서 S3로 파일 업로드클라우드/AWS 2022. 5. 16. 22:49
1. filezila를 이용해서 ubuntu에 파일 올리기 2. awsConfig.json 파일 생성해서 key 값 넣기 IAM 계정 생성할 때 다운로드 된 credential.csv파일에서 복붙하자 ap-northeast-2 는 지역이 서울을 뜻함 { "accessKeyId": "...", "secretAccessKey": "...", "region": "ap-northeast-2" } 3. s3_test.js 파일 생성하고 다음 코드를 넣자 var file = s3에 넣으려는 파일경로 Key = s3에 저장할 파일 이름 지정 contenttype = png로 이미지 저장 var AWS = require('aws-sdk') var fs = require('fs'); // 접속정보 설정 AWS.confi..
-
[AWS] Rekognition을 이용하여 이미지에서 텍스트 감지하기클라우드/AWS 2022. 5. 16. 22:08
https://docs.aws.amazon.com/ko_kr/rekognition/latest/dg/text-detecting-text-procedure.html 이미지에서 텍스트 감지 - Amazon Rekognition 이 페이지에 작업이 필요하다는 점을 알려 주셔서 감사합니다. 실망시켜 드려 죄송합니다. 잠깐 시간을 내어 설명서를 향상시킬 수 있는 방법에 대해 말씀해 주십시오. docs.aws.amazon.com 이미지 1. IAM 계정 생성 생성 완료하면 new_user_credential.csv 파일 다운로드됨 -> Access key ID , Secret access key , Console login link 2. S3의 버킷을 생성 S3란 ? 인터넷용 스토리지 - REST 인터페이스로 저장..
-
[AWS] ec2에서 MQTT Message Broker 설치 및 사용클라우드/AWS 2022. 5. 11. 22:14
- 인스턴스 생성 후, elastic ip 할당해줌 - 보안 그룹 설정 추가 port 1833 추가하기 - putty 실행 (우분투로함) sudo apt-get update sudo apt-get install mosquitto sudo apt-get install mosquitto-clients - 창에 address already in use 가 뜨면 다음을 입력하자 sudo systemctl stop mosquitto.service - mosquitto 활성화 하기 systemctl start mosquitto systemctl enable mosquitto - publish 작업 mosquitto_pub -h localhost -t my-topic -m "status check" - subscri..