MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / _parse_video_coord

Function _parse_video_coord

IntelOSINT.py:19983–20002  ·  view source on GitHub ↗
(raw)

Source from the content-addressed store, hash-verified

19981 return str(v)
19982
19983 def _parse_video_coord(raw):
19984 if raw is None:
19985 return None
19986 if isinstance(raw, (int, float)):
19987 try:
19988 v = float(raw)
19989 if v == v:
19990 return v
19991 except Exception:
19992 return None
19993 txt = str(raw).strip()
19994 if not txt:
19995 return None
19996 found = re.search(r"(-?\d+(?:[.,]\d+)?)", txt)
19997 if not found:
19998 return None
19999 try:
20000 return float(found.group(1).replace(",", "."))
20001 except Exception:
20002 return None
20003
20004 def _parse_iso6709(raw):
20005 txt = str(raw or "").strip()

Callers 2

_parse_iso6709Function · 0.85
probe_metadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected