ocr_api_server
ocr_api_server copied to clipboard
滑块验证码判断逻辑问题
滑块掩码参数判断逻辑是否有问题, 这样好像是file和base64都是必传 还有这个滑块验证码识别率好低呀,基本上全错
确实是,卡了我半天,怎么都不行。。
if (background is None or target is None) and (background_file is None or target_file is None):
return APIResponse(code=400, message="Both target and background must be provided")
但是她报错 "message": "OpenCV(4.10.0) /Users/xperience/GHA-Actions-OpenCV/_work/opencv-python/opencv-python/opencv/modules/imgproc/src/color.cpp:196: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'\n",
if (background is None or target is None) and (background_file is None or target_file is None): return APIResponse(code=400, message="Both target and background must be provided")但是她报错 "message": "OpenCV(4.10.0) /Users/xperience/GHA-Actions-OpenCV/_work/opencv-python/opencv-python/opencv/modules/imgproc/src/color.cpp:196: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'\n",
兄弟你解决了吗,我也报这个错误