Commit Graph

21 Commits (9fb356bf45de44118e251ccfa2c2fb370bc8d997)

Author SHA1 Message Date
Mike Lang 3606fadaa8 Pin gevent version to work around build issues
Seeing the following error on latest versions of gevent:

 Traceback (most recent call last):
   File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
     return _run_code(code, main_globals, None,
   File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
     exec(code, run_globals)
   File "/usr/lib/python3.9/site-packages/zulip_bots/schedulebot.py", line 2, in <module>
     import gevent.monkey
   File "/usr/lib/python3.9/site-packages/gevent/__init__.py", line 72, in <module>
     from gevent._hub_local import get_hub
   File "/usr/lib/python3.9/site-packages/gevent/_hub_local.py", line 150, in <module>
     import_c_accel(globals(), 'gevent.__hub_local')
   File "/usr/lib/python3.9/site-packages/gevent/_util.py", line 148, in import_c_accel
     mod = importlib.import_module(cname)
   File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
     return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'gevent._gevent_c_hub_local'
12 months ago
Mike Lang b65203ce0e bus_analyzer: Parallelize and fix error handling 12 months ago
Mike Lang c5acfe3ae0 bus_analyzer: Fix listing segments to respect tombstones 12 months ago
Mike Lang 8ac6e71d48 bus_analyzer: Normalize brightness across all digits, not one by one 1 year ago
Mike Lang bd9e22bc1f Revert "bus_analyzer: blank is grey, not black"
This reverts commit 3e0280cf33.

Now that we look at all digits at once for normalization, blank is black
1 year ago
Mike Lang 3e0280cf33 bus_analyzer: blank is grey, not black 1 year ago
Mike Lang 01f93a798a bus_analyzer: Also determine time of day 1 year ago
Mike Lang 78c053000e Upgrade pip in order to make wheels work 1 year ago
Mike Lang 07c9c208cc improve clock OCR by explicitly looking for green pixels 1 year ago
Mike Lang be77f4ea14 bus_analyzer: Also record the clock 1 year ago
Mike Lang 2ae273a75c bus_analyzer: Parse the final odo digit 1 year ago
Mike Lang 907d1ba6f9 Add a blank prototype which invalidates the odo if matched 1 year ago
Mike Lang 19f169e750 bus_analyzer: Move prototypes into subdir and allow non-digits 1 year ago
Mike Lang 5e43446c92 bus_analyzer: Add a testing routine to check analyzer changes 1 year ago
Mike Lang a4eceea958 odo extraction: Look for digit y-level for all main digits together
They should all be at the same y level, and the extra data helps avoid traps
when the digit has few pixels (eg. a 1).
1 year ago
Mike Lang dbf9f5c8de bus_analyzer: Drop the odometer threshold so we don't reject things at night 1 year ago
Mike Lang e38d21fb61 bus analyser: add a frame extraction cli command 1 year ago
Mike Lang b6d71297c6 bus_analyzer: Make dockerfile work 1 year ago
Mike Lang f969921ae3 bus_analyzer: Import existing extractor code and get it working
This was worked on out-of-repo for a while. But now it's ready to be integrated.
1 year ago
Mike Lang 9e988c0d43 Add a "prototype" of each odometer digit
This is an averaged, normalized version of a number of examples of each digit in the odometer.
It does not include the last digit which looks different.

These prototypes are used to recognize the digits in buscam data.
1 year ago
Mike Lang 76daceff19 bus_analyzer: initial implementation 1 year ago