전체 글(808)
-
Django get_or_create
조회한 결과가 없으면 신규로 row 생성 isCreated : 신규로 생성되면 True, 이미 존재한 데이터면 False testedData,isCreated = Tested_Data.objects.get_or_create(name=fileName,dir=dir)
2021.03.11 -
Django django.db.utils import OperationalError
filter 결과가 없는 경우 발생 boxes.count()를 실행하면 예외 발생 try : boxes.count() train.makeImage(boxes, 'special') except OperationalError : print('테이터가 없습니다.')
2021.03.10 -
Spring Boot jsp 호출이 안되는 경우
원인은 잘 모르겠고, 일단 아래와 같이 했을 때 해결됨 DemoApplication의 패키지 위치 변경 : 해결 안됨 Maven Install 수행 : repackage 오류인하여 수행 안됨 pom.xml에 아래 내용 추가 11 ABCApplication.package.main
2021.03.10 -
Spring Boot에서 html과 jsp 중 어느 것이 더 먼저 인식이 될까?
/static/index.html /WEB-INF/jsp/index.jsp 위 2개가 셋팅된 상태에서 localhost:8080으로 호출하면, index.html이 호출됨
2021.03.10 -
Tesseract TR 생성시 인식률 높이기
'-- psm 8'을 추가해 줬을 때, 좀더 많은 문자를 제대로 인식함'-- psm 8'을 추가해 줬을 때, 좀더 많은 문자를 제대로 인식함 cmd = "tesseract %s %s --psm 8 nobatch box.train" %(file,file[:file.rfind('.')]) 아래 Fail을 줄일 수 있음 FAIL! APPLY_BOXES: boxfile line 184/: ((2135,9883),(2139,9906)): FAILURE! Couldn't find a matching blob
2021.03.08 -
Spring Boot War를 local Tomcat 서버에 이관
SpringBootServletInitializer를 상속받도록 처리 SpringApplicationBuilder를 override package com.example.demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.Reques..
2021.03.08