@acedatacloud/node-red-face-transform 1.0.0
Analyze and transform faces in Node-RED with an Ace Data Cloud key that already has Face Transform access.
Face Transform for Node-RED
Run Face Transform operations with an Ace Data Cloud application that already has Face Transform API access. Face Transform is a private service. Install the node in Node-RED 4 or 5 with Node.js 22 or later. Face Transform service details
Setup
- In Manage palette → Install, search for
@acedatacloud/node-red-face-transform. For manual installation, runnpm install @acedatacloud/node-red-face-transformin the Node-RED user directory and restart it. - Add Face Transform or import Analyze a face for liveness from the package examples. Configure an application that already has Face Transform API access and enter its raw token in the account node. The password credential stays in Node-RED's credential store. Ace Data Cloud Applications
- Choose an operation. Set
msg.payloadto the request object below. Replace the blankimage_urlin the example with an image you are authorized to process, then click the Inject node once. Each request may use Credits.
| Operation | Request fields |
|---|---|
| Analyze face keypoints | image_url, optional mode, face_model_version and need_rotate_detection |
| Beautify | image_url, optional smoothing, whitening, face_lifting and eye_enlarging |
| Change age | image_url and age_infos, such as [{"age": 30}] |
| Change gender appearance | image_url and gender_infos, such as [{"gender": 0}]. A face rectangle can be supplied as face_rect with x, y, width and height. |
| Detect liveness | image_url and face_model_version string "3.0", which the node supplies by default |
| Swap face | source_image_url and target_image_url. The node defaults to async: true. Supply an authorized HTTPS callback_url to receive the final reply, or pass async: false for a synchronous result. An optional timeout is in seconds. |
| Cartoon style | image_url |
Outputs
- Completed result returns
msg.payload.face_shape_setfor Analyze,msg.payload.scorefor Detect liveness, ormsg.payload.image_urlfor image transforms.msg.faceStatusiscompleted. - Accepted asynchronous swap returns
msg.payload.task_idand setsmsg.faceStatustopending. Use the original reference in application history or wait for the configured callback. - Add a Catch node for validation, access, service and transport errors. If a submission is uncertain, check the original application history before running it again.
Use image URLs you are authorized to process. Keep landmarks, scores, result links and callback destinations within authorized flows. The node sends one request to the fixed Ace Data Cloud HTTPS API and passes only supported request fields. Node-RED flows can store outputs and original inputs in their own logs or history, depending on your settings. Privacy