Use portrait matting in WeChat mini program
Provides API services by portrait-matting-unet-flask. Before you start, please confirm that there are no problems with the API service. It is recommended to use PostMan for testing.
Modify the /miniprogram/utils/api.js
file based on your needs
var api = 'http://xxx.xx.xx.xxx/api'; // server address
// var api = "http://127.0.0.1:5000/api"; // local address
var url = {
baseUrl: `${api}`,
seg: `${api}/seg`,
upload: `${api}/wechat/upload`,
matting: `${api}/wechat/matting`,
}
module.exports = url;
The birth of this project is inseparable from the following projects:
ColorUI:Vibrant, high-saturation colors, a small program component library focused on vision