Unofficial Node.js API for controlling Raytheon/Amber Radiance 1 IR Cameras.
Features:
- Getting camera status
- Changing brightness / contrast
- Running calibrations
- Toggling cryo cooler
- Changing automatic gain control (AGC) modes
- Changing intensity transform table (ITT) modes
- Changing look-up table (LUT) modes
- Changing non-uniformity correction (NUC) modes
The Radiance 1 Infrared camera was developed by Amber Engineering, a engineering company started in 1981 and purchased in 1992 by Raytheon Missile Systems. Rebranded to Raytheon Amber, they released this camera around 1993.
(Pictured: NASA Spinoff camera based on an Amber Radiance 1. Image credit: NASA)
In 1998, Raytheon Amber closed shop and merged with Hughes Defense, after which much of the tools and documentation for their cameras became more difficult to find.
Many of these cameras still exist and can provide impressive IR imaging, albeit in a relatively low resolution, but the software required to control it is long obsolete and requires a license that can no longer be obtained. Some of the functionality has been reverse-engineered and included in this library so others may breathe new life into these devices.
For more background stories on these cameras, see Fraser's Quest on EEVblog.
- Node.js 20+
npm install @appliedminds/amber-radiance-1
import { Camera } from '@appliedminds/amber-radiance-1'
const camera = new Camera({ port: '/dev/tty21', transport: 'serial' })
await camera.connect()
// Set NUC mode
await device.setNUC('warm')
// Set LUT mode
await device.setLUT('black-and-white')
// Turn off Cryo Cooler
await device.setCooler(false)
This assumes you're using some sort of RS-232/TCP pass-through device, such as a Moxa NPort
import { Camera } from '@appliedminds/amber-radiance-1'
const camera = new Camera({ host: '192.168.100.50', port: 4001, transport: 'tcp' })
await camera.connect()
// Get power and cooler cycles
console.log(await camera.getStatus())
Constructor
-
port
:- When
transport
set totcp
: TCP port - When
transport
set toserial
: Qualified path on MacOS/Linux (E.G./dev/some/device/path
), COM port on Windows (E.G.COM3
)
- When
-
host
: Host or IP address to connect to (only whentransport
set totcp
) -
verbose
: Print additional debug logs -
transport
: Method to connect to device (serial
ortcp
) (default:tcp
)
Manually close connection. Resolves once the connection has been closed.
Connect to camera. The returned promise will resolve once connected.
Check if Automatic Gain Control is turned off or on.
Return active intensity transform table mode (linear
, inverse
, s-curve
or two-cycle
)
Return active look-up table mode (black-and-white
, color
or sepia
)
Return active non-uniformity correction mode (cold
, mid
, warm
or hot
)
Return camera status information. Resolves to an object containing the following keys:
-
numCoolerCycles
: Number of times the cryo cooler has been cycled -
numPowerCycles
: Number of times the device power has been cycled -
coolerTime
: A timestamp indicating cooler time, although it's unclear how this is supposed to be interpreted.
Vertically invert the output image.
Initiate the single point calibration process for the current NUC mode.
Initiate the two-point calibration process for the current NUC mode.
Change relative brightness
-
delta
: Increase brightness when > 0, otherwise decrease
Toggle cryo cooler operation.
Change relative contrast
-
delta
: Increase contrast when > 0, otherwise decrease
Set automatic gain control mode
-
mode
: Set AGC tofull
,midsize
,center
,horizon
oroff
to turn off.
Set intensity transform table used for transforming the output values for display.
-
mode
:linear
,inverse
,s-curve
, ortwo-cycle
Set the look-up table used for coloring the output image.
-
mode
:black-and-white
,color
orsepia
Set current non-uniformity correction mode.
-
mode
:cold
,mid
,warm
orhot
Toggle the on-screen color bar legend on or off.
Toggle freeze frame mode.
Show or hide the on-screen display sidebar.
Unless otherwise specified, all content, including all source code files and documentation files in this repository are:
Copyright (c) 2024 Applied Minds LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.