edit : 안경이미지 검색시 temp 이미지 사용 안함

This commit is contained in:
2026-01-02 09:45:29 +09:00
parent e2190eadba
commit 80f5e50c31
6 changed files with 107 additions and 11 deletions

View File

@@ -507,9 +507,12 @@ async def vactor_vit_input_glasses_img_data(request: Request, request_body_info:
raise Exception(f"indexType is invalid (current value = {request_body_info.indexType})")
query_image_data = request_body_info.inputImage
query_image_path = os.path.join(TEMP_FOLDER, f'input_{D.date_file_name()}_query.png')
os.makedirs(TEMP_FOLDER, exist_ok=True)
save_base64_as_image_file(request_body_info.inputImage ,query_image_path)
# query_image_path = os.path.join(TEMP_FOLDER, f'input_{D.date_file_name()}_query.png')
# os.makedirs(TEMP_FOLDER, exist_ok=True)
# save_base64_as_image_file(request_body_info.inputImage ,query_image_path)
query_image_path = query_image_data
vector_request_data = {'query_image_path' : query_image_path,
'index_type' : request_body_info.indexType,