-
Notifications
You must be signed in to change notification settings - Fork 2
cve calc offset
firepick1 (pixel) edited this page Jul 7, 2014
·
12 revisions
CVE calc-offset is useful for calibration and positioning. It calculates the offset between the current camera image and a saved image.
- Example: http://firepick:8080/firerest/cv/1/gray/cve/calc-offset/save.fire
- Example: http://firepick:8080/firerest/cv/1/gray/cve/calc-offset/process.fire
The CVE process.fire resource returns an offset JSON object with per-channel offset metrics. See calcOffset:
{ ... "offset":{ "channels":{ "0":{ "dx":14, "dy":0, "match":"0.984573" } }, "rects":[ { "x":400, "y":100, "width":736, "height":136, "angle":0 }, { "x":400, "y":100, "width":800, "height":200, "angle":0 } ] }, ... }
A sample FireSight pipeline implementing this CVE is:
[ {"op":"calcOffset", "name":"offset", "minval":"{{minval||0.7}}", "roi":"{{roi||[]}}", "xtol":"{{xtol||32}}", "ytol":"{{ytol||32}}", "channels":"{{channels||[]}}", "template":"{{template}}" } ]
- roi JSON array [x,y,width,height] region of interest
- rectColor color for ROI rectangles
- xtol maximum detectable horizontal pixel offset
- ytol maximum detectable vertical pixel offset