edit : 안경이미지 검색시 temp 이미지 사용 안함
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user