@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.

npm install @acedatacloud/node-red-face-transform

Face Transform for Node-RED

Face Transform

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

  1. In Manage palette → Install, search for @acedatacloud/node-red-face-transform. For manual installation, run npm install @acedatacloud/node-red-face-transform in the Node-RED user directory and restart it.
  2. 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
  3. Choose an operation. Set msg.payload to the request object below. Replace the blank image_url in 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_set for Analyze, msg.payload.score for Detect liveness, or msg.payload.image_url for image transforms. msg.faceStatus is completed.
  • Accepted asynchronous swap returns msg.payload.task_id and sets msg.faceStatus to pending. 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

Node Info

Version: 1.0.0
Updated 3 days ago
License: MIT
Rating: not yet rated

Categories

Actions

Rate:

Downloads

0 in the last week

Nodes

  • acedatacloud-face-transform-account
  • acedatacloud-face-transform

Keywords

  • node-red
  • face-transform
  • image
  • acedatacloud

Maintainers