mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 16:26:14 +08:00
tools/rerun: new image API for rerun 0.18 (#33186)
* change api for video * install prerelease 0.18 old-commit-hash: 5909bcde62d0a007669098ad9f650cf67c09f174
This commit is contained in:
@@ -37,6 +37,9 @@ echo "installing python packages..."
|
||||
uv --no-cache sync --frozen --all-extras
|
||||
source .venv/bin/activate
|
||||
|
||||
# TODO: remove this. Workaround till get a new release. PEP508 doesn't seem to have find-links option
|
||||
uv pip install --pre -f https://build.rerun.io/commit/a93faab/wheels --upgrade rerun-sdk
|
||||
|
||||
echo "PYTHONPATH=${PWD}" > $ROOT/.env
|
||||
if [[ "$(uname)" == 'Darwin' ]]; then
|
||||
echo "# msgq doesn't work on mac" >> $ROOT/.env
|
||||
|
||||
+1
-2
@@ -127,10 +127,9 @@ class Rerunner:
|
||||
rr.init(RR_WIN)
|
||||
rr.connect(default_blueprint=blueprint)
|
||||
|
||||
size_hint = (h, w)
|
||||
for ts, frame in fr:
|
||||
rr.set_time_nanos(RR_TIMELINE_NAME, int(ts * 1e9))
|
||||
rr.log(cam_type, rr.ImageEncoded(contents=frame,format=rr.ImageFormat.NV12(size_hint)))
|
||||
rr.log(cam_type, rr.Image(bytes=frame, width=w, height=h, pixel_format=rr.PixelFormat.NV12))
|
||||
|
||||
def load_data(self):
|
||||
self._start_rerun()
|
||||
|
||||
Reference in New Issue
Block a user