goneocam

command module
v0.0.0-...-fc666bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

README

GoNeoCam

GoNeoCam is a web server that exposes a REST api for the Neoden camera DLL.

Building

set GOARCH=386
go build server.go

API

Some function arguments arguments are still in the TBD category. .

/cameras/{cameraId}/imgSetWidthHeight?width={width}&height={height}
/cameras/{cameraId}/imgReadAsy?width={width}&height={height}&timeout){timeout}
/cameras/{cameraId}/imgLed?mode={mode}
/cameras/{cameraId}/imgReset
/cameras/{cameraId}/imgSetExposure?exposure={exposure}
/cameras/{cameraId}/imgSetGain?gain={gain}
/cameras/{cameraId}/imgSetLt?a2={a2}&a3={a3}

Testing

  • The Neoden camera DLL has to be located in the folder that will be searched during DLL loading. It wil reside quite happily in the same folder as the GoNeoCam server

  • Keep in mind that some of these functions are still untested. Experiment at your own risk.

  • img_init is executed a few seconds after the server has started.

  • the native version of img_readAsy returns a 8 bit buffer of raw image bytes. The REST API version (imgReadAsy) returns a PNG greyscale image. Example:

Alt text

Documentation

Overview

Copyright [2019] [Telenor Digital AS]

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL