mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
test(cctv): verify Bosch MIC aliases and preserve estimated optics
This commit is contained in:
1 parent
72d1b0f055
commit
dec6cb937e
4 files changed
+62
-13
No files matched your search
@@ -12,24 +12,26 @@
|
||||
* Cameras without an identified model are untouched — unknown never implies
|
||||
* anything.
|
||||
*
|
||||
* Spec records are vendored verbatim from the CCTV Camera Database
|
||||
* Specification fields are vendored from the CCTV Camera Database
|
||||
* (https://github.com/ch-bas/cctv-camera-database, CC0-1.0) — an open dataset
|
||||
* of 29,000+ camera models transcribed from manufacturer datasheets (76% with
|
||||
* FOV, as of v2.29.0). This module vendors the records that the currently integrated public
|
||||
* FOV, as of v2.29.0). This module vendors records that the integrated public
|
||||
* catalogs publish hardware for — King County WA (Cohu, Bosch AUTODOME, Axis
|
||||
* Q6135-LE), plus the Bosch AUTODOME and Axis PTZ/multisensor models that
|
||||
* appear in Sarasota County FL and Sioux Falls SD open data, and the Bosch MIC
|
||||
* PTZs in the City of Amsterdam camera register; packs that publish other
|
||||
* hardware models can grow it, or vendor the full extract.
|
||||
* appear in Sarasota County FL and Sioux Falls SD open data, plus the Bosch MIC
|
||||
* PTZs for the City of Amsterdam camera register proposed in #251; packs that
|
||||
* publish other hardware models can grow it, or vendor the full extract.
|
||||
*
|
||||
* Scope guardrail: records describe camera PRODUCTS (optics, resolution,
|
||||
* night vision) — never endpoints, stream paths, or access/config data.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Verbatim records from the dataset's model-enrichment extract (v2.26.0; the
|
||||
* Bosch MIC records from v2.29.0). Bosch MIC order codes end in a colour
|
||||
* letter (B black, G grey, W white) on one shared datasheet; those siblings,
|
||||
* Records from the dataset's model-enrichment extract (v2.26.0; the Bosch MIC
|
||||
* records from v2.29.0). MIC specification fields are unchanged; product
|
||||
* titles are shortened to model codes and colour aliases are added locally.
|
||||
* Bosch MIC order codes end in a colour letter (B black, G grey, W white)
|
||||
* on one shared datasheet; those siblings,
|
||||
* and the `x` wildcard registries write for the colour letter, are listed as
|
||||
* aliases of the one vendored record.
|
||||
*/
|
||||
@@ -488,7 +490,7 @@ const NAME_INDEX = RECORDS.flatMap((record) => {
|
||||
* guesses).
|
||||
* @param {string} model - Hardware model as named by a source pack or seed.
|
||||
* @param {string} [manufacturer] - The source's manufacturer, when published.
|
||||
* @returns {Object|null} The verbatim spec record, or null when unknown.
|
||||
* @returns {Object|null} The matched spec record, or null when unknown.
|
||||
*/
|
||||
export function lookupModelSpec(model, manufacturer) {
|
||||
const query = words(model).map(stripVariantSuffix);
|
||||
|
||||
Reference in new issue
Block a user