CATA-SDK-EN
  1. camera
CATA-SDK-EN
  • Documentation
    • AI Recognition Precautions
    • Quick Start
    • SDK Error Code
    • AI Sequence Diagram
    • Screen Cropping
    • API Documentation (C language)
  • Activation
    • Activation Process
      • Step 1: Activate the device
      • Step 2: Download device configuration
      • Step 3: Download device model
    • Activate information import/export
      • Export activation data
      • Import activation data
    • View Device Activation Information
      GET
  • Common interfaces
    • Retrieve camera images
      GET
    • Retrieve status
      GET
    • retrieve logs
      GET
    • retrieve config
      GET
  • Recognition
    • Screen cropping
      • Screen cropping
      • Screen cropping config
    • Recognition
      GET
    • feedback
      POST
    • learning forgetting
      POST
    • clear learning data
      POST
    • save learning
      POST
  • learning export & import
    • export
      GET
    • import
      POST
  • camera
    • Obtain the installed camera
      GET
    • Set up the camera
      POST
  • goods
    • import product data
  • Product Image Matching
    • Download image
    • Match image
    • Edit image
  1. camera

Set up the camera

POST
/config/camera-config
暂无描述

Request

Body Params application/json
name
string 
required
path
string 
required
vid
null 
required
pid
null 
required
Example
{
  "name": "KS2A543",
  "path": "\\\\?\\usb#vid_2309&pid_0101&mi_00#9&2dfc1ba8&0&0000#{e5323777-f976-4f5b-9b55-b94699c46e44}\\global",
  "vid": null,
  "pid": null
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:17339/config/camera-config' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "KS2A543",
    "path": "\\\\?\\usb#vid_2309&pid_0101&mi_00#9&2dfc1ba8&0&0000#{e5323777-f976-4f5b-9b55-b94699c46e44}\\global",
    "vid": null,
    "pid": null
}'

Responses

🟢200success
application/json
Body
object {0}
Example
{}
🟢200error
Previous
Obtain the installed camera
Next
import product data
Built with