Recent Posts
                                        
                                    
                                        
                                    
                                        Recent Comments
                                        
                                    
                                        
                                    
                                    
                                목록2022/04 (2)
Space Shift !
			
			
				쉘에서 가상환경실행하기
				
	
                
            
                
            
                
	
		sh oops.sh 매번 가상환경실행하기 귀찮아서 쉘로 만들어서 사용해보기로 한다. 특히 크론으로 등록해서 처리해야되는데 가상환경이 안되서 고민해 보았다. 하지만, 실행을 해도 반응이 없다. oops.sh 내용은 아래와 같다. # oops.sh #!/bin/bash a() { source venv/bin/activate } a source : not found 위 에러가 난단면 /etc/profile 에 아래 추가 export PATH=$PATH: 결론 source oops.sh 잘된다. 지금까지 삽질한 내용 정리
				레벨업(level up)/Programming
				
				2022. 4. 19. 13:58
			
		
			
			
				Tesseract-ocr 이미지 프로세싱
				
	
                
            
                
            
				
				
				
				
                
    				
                
            웹크롤링을 하는중 이미지에서 글씨를 추출할 필요가 생겼다. docker에 Ubuntu가 깔려있어 바로 설치 tesseract 설치 # tesseract-ocr 4.x.x 설치 apt install tesseract-ocr apt install libtesseract-dev # 언어팩위치 https://github.com/tesseract-ocr/tessdoc/blob/main/Data-Files.md wget https://github.com/tesseract-ocr/tessdata/raw/4.00/eng.traineddata wget https://github.com/tesseract-ocr/tessdata/raw/4.00/kor.traineddata # tesseract-ocr 4.x.x 설치 확인 ..
				레벨업(level up)/Python
				
				2022. 4. 15. 09:34