npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

camera-library

v1.0.11

Published

read yaml file

Readme

Camera Library

카메라 파라미터가 포함된 YAML 파일을 읽어와 유효성을 검증하고, 잘못된 입력을 파악하고 수정할 수 있도록 돕고, 검증된 정보를 바탕으로 Camera Model에 저장하여 반환하는 라이브러리입니다.

Documentation

Installation

$ npm install camera-library

Getting Started

In your editor:

import { readYaml } from "camera-library";

const data = readYaml(filePath);

console.log(data.channel);

Key Features

  • YAML 파일 읽기
    • 카메라 파라미터가 포함된 YAML 파일을 읽습니다.
  • 유효성 검증
    • 파일의 카메라 파라미터 형식이 올바른지 확인합니다.
  • 오류 보고
    • 잘못된 파라미터가 발견되면, 해당 파라미터의 정보를 오류 메시지와 함께 사용자에게 알려줍니다.
  • 리턴
    • 검증된 정보를 바탕으로 저장된 camera model을 반환합니다.

Input Data Sample Format

channel: "mvc_front"        # (string) Camera Channel Name
sensor: "abcd"              # (string) Camera Sensor Name
distortion_model: "kbm"     # (string) Distortion Model Type
hfov: 90.0                  # (float) Horizontal Field of View (degrees, 0.0 - 360.0)
height: 1080                # (int) Image Height in Pixels
width: 1920                 # (int) Image Width in Pixels
intrinsic:                  # (object) Intrinsic Camera Parameters
  fx: 1200.0                # (float) Focal Length in Pixels (X-axis)
  fy: 1200.0                # (float) Focal Length in Pixels (Y-axis)
  cx: 960.0                 # (float) Principal Point X-coordinate (pixels)
  cy: 540.0                 # (float) Principal Point Y-coordinate (pixels)
  ...
vcs_extrinsic:              # (object) VCS Extrinsic Camera Parameters
  frame_from: "vcs"         # (string) Source Coordinate Frame
  frame_to: "svc_front"     # (string) Target Coordinate Frame
  qw: -0.457830327784499    # (float) Real Part of Quaternion
  qx: 0.5430736515642708    # (float) Imaginary Part of Quaternion
  qy: -0.5354141965576975   # (float) Imaginary Part of Quaternion
  qz: 0.4569398626316843    # (float) Imaginary Part of Quaternion
  tx: 3.104786876325451     # (float) Translation Parameter (X-axis)
  ty: 0.016295622111088     # (float) Translation Parameter (Y-axis)
  tz: -1.6926350132369008   # (float) Translation Parameter (Z-axis)
...

Release Notes

1.0.8

1.0.9 - create README.md

1.0.10 - YAML 파일을 읽고, 유효성 검사를 실행

1.0.11 - 유효하지 않은 정보가 있을 때 전달하는 에러 메시지 포맷 변경

End