Ylc C++ lib. Software controller for Yamano CCTV lenses

€400.00

The Ylc C++ library version 4.0.0 is a software controller for Yamano lenses | VS Technology lenses. The library has auto focus functions.

LICENSE: We sell source code of this library as is, without future updates and technical support according to perpetual non-exclusive royalty-free license. You pay once and can use this library in your software and hardware products without limits. Please read the license agreement before purchasing: DOWNLOAD LICENSE. You can buy technical support service for this product.

Add To Cart

The Ylc C++ library version 4.0.0 is a software controller for Yamano lenses | VS Technology lenses. The library has auto focus functions.

LICENSE: We sell source code of this library as is, without future updates and technical support according to perpetual non-exclusive royalty-free license. You pay once and can use this library in your software and hardware products without limits. Please read the license agreement before purchasing: DOWNLOAD LICENSE. You can buy technical support service for this product.

Technical support service
Options:

The Ylc C++ library version 4.0.0 is a software controller for Yamano lenses | VS Technology lenses. The library has auto focus functions.

LICENSE: We sell source code of this library as is, without future updates and technical support according to perpetual non-exclusive royalty-free license. You pay once and can use this library in your software and hardware products without limits. Please read the license agreement before purchasing: DOWNLOAD LICENSE. You can buy technical support service for this product.

Purchase options

You can by this software online by card or you can buy the software by bank transfer. Bank transfer available only for companies. To buy software by bank transfer please send us request to info@constantrobotics.com. Also, you can buy technical support service for this product.

Overview

The Ylc C++ library is a software controller for Yamano lenses | VS Technology lenses. These lenses provide control interface over serial port. The Ylc library inherits Lens interface. It includes source code of libraries: Lens interface library (provides interface and data structures to control lenses, Apache 2.0 license), Logger logging library (provides function to print log information in console and files, Apache 2.0 license) and SerialPort library (provides functions to work with serial ports, Apache 2.0 license). The Ylc library provides simple interface to be integrated in any C++ projects. The library repository (folder) provided by source code and doesn't have third-party dependencies to be specially installed in OS. It developed with C++17 standard and compatible with Linux and Windows.

Downloads

Programmer’s manual: DOWNLOAD

Lens + camera control interface

class Ylc : public Lens
{
public:

    /// Get class version.
    static std::string getVersion();

    /// Open serial port.
    bool openLens(std::string initString) override;

    /// Init lens controller.
    bool initLens(LensParams& params) override;

    /// Close serial port and stop communication thread.
    void closeLens() override;

    /// Get controller initialization status.
    bool isLensOpen() override;

    /// Get connection status.
    bool isLensConnected() override;

    /// Set the lens controller parameter.
    bool setParam(LensParam id, float value) override;

    /// Get the lens controller param.
    float getParam(LensParam id) override;
    
    /// Get the lens controller params.
    void getParams(LensParams& params) override;

    /// Execute command.
    bool executeCommand(LensCommand id, float arg = 0) override;

    /// Add video frame for auto focus purposes.
    void addVideoFrame(cr::video::Frame& frame) override;

    /// Decode and execute command.
    bool decodeAndExecuteCommand(uint8_t* data, int size) override;
};

Simple example

#include <chrono>
#include <iostream>
#include <string>
#include <thread>
#include "Ylc.h"

int main(void)
{
    // Init lens controller.
    cr::lens::Lens* lc = new cr::lens::Ylc();
    if (!lc->openLens("/dev/ttyUSB0"))
        return -1;

    // Get lens Zoom position
    std:: cout<< "Zoom pos: " <<
    lc->getParam(cr::lens::LensParam::ZOOM_POS) << std::endl;

    // Go to zoom position 65535 (Full tele).
    lc->executeCommand(cr::lens::LensCommand::ZOOM_TO_POS, 65535);

    // Show zoom movement (changing position).
    for (int i = 0; i < 50; ++i)
    {   
        std:: cout<< "Zoom pos: " <<
        lc->getParam(cr::lens::LensParam::ZOOM_POS) << std::endl;
        std::this_thread::sleep_for(std::chrono::milliseconds(100)); 
    }
    return 1;
}
KowaCamera C++ lib. Software controller for KOWA low-light camera
€400.00
KowaProtocolParser C++ lib. Protocol parser library for KOWA low-light cameras.
€200.00
Olc C++ lib. Software controller for control Ophir® infrared lenses with advanced auto focus functions
€1,000.00
ViscaParser C++ lib. Control protocol parser library for VISCA camera
€200.00
VentusCamera C++ lib. Software controller for Sierra-Olympia Ventus series thermal cameras.
€400.00