质保单处理
This commit is contained in:
@@ -1,9 +1,30 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 调用ocr, 直接识别图像中的文字
|
||||
*
|
||||
* @param {string} imgUrl 图片url
|
||||
* @returns {Promise<string>} 识别结果
|
||||
*/
|
||||
export function recognizeText({ imgUrl }) {
|
||||
return request({
|
||||
url: '/wms/purchasePlan/recognizeText',
|
||||
method: 'post',
|
||||
data: { imgUrl }
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 调用通义千问模型, 识别图片中的文字
|
||||
*
|
||||
* @param {string} imageUrl 图片url
|
||||
* @returns {Promise<string>} 识别结果
|
||||
*/
|
||||
export function recognizeBomByModel({ imageUrl }) {
|
||||
return request({
|
||||
url: '/wms/imageRecognition/recognize',
|
||||
method: 'post',
|
||||
data: { imageUrl },
|
||||
timeout: 100000
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user