Commit Graph

48 Commits

Author SHA1 Message Date
Mitchell Goff
f0ae0c34cd Added python VisionBuf class (#29075)
* Added python VisionBuf class

* fixed property names

* Bump cereal
2023-07-25 01:08:39 -07:00
Dean Lee
269ceca27a common/swaglog: remove trailing semicolon from macros (#29042) 2023-07-19 19:46:42 -07:00
Dean Lee
9784f61f23 camerad: remove unused frame_length from struct FrameMetadata (#28693)
* remove unused frame_length

* bump cereal

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-06-25 12:51:10 -07:00
Mitchell Goff
ae5bfcf248 Remove get_model_yuv_transform function (#28568)
* remove yuv_transform from update_calibration

* Remove get_model_yuv_transform entirely
2023-06-21 20:02:44 -07:00
ZwX1616
78ba67e211 camerad: write static AE settings only once (#28134)
* this is free

* illusion of choice
2023-05-08 18:43:54 -07:00
ZwX1616
4b1f77d54a OX03C10: improve tone mapping (#27754)
Co-authored-by: Comma Dev1ce & Y. Yousfi <device@comma.ai>
2023-04-05 19:46:04 -07:00
ZwX1616
25a7f87b42 camerad: reduce daytime HDR blur (#27644)
* 60hz

* be dynamic

* cast

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-03-22 13:44:29 -07:00
Dean Lee
a86730a2c6 camerad: remove deprecated focus parameters from FrameMetadata (#27638) 2023-03-21 16:55:06 -07:00
Robbe Derks
d26d8b3ba9 Improve OX frame timing jitter (#27582)
* frame timing script

* enable vsync output and improve fsin tracking

* increase measurement time

* fix python linting

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-03-16 10:59:27 +01:00
ZwX1616
e2e780e7c6 ci: intra-camera timing check (#27069)
* test frame time

* 1 is still much tighter than 5
2023-01-24 16:34:41 -08:00
Adeeb Shihadeh
ef42652368 fix typo AR0321 -> AR0231 (#26993) 2023-01-17 19:52:06 -08:00
ZwX1616
bc8e2032f7 camerad: reduce ox LFM noise (#26949)
* wip

* make separate score func

* n4ot g

* clean up

* remove

* simplify

* b2b

* more than 0

* this is fine

* led

* balance costs

* clean up

* no if tici

* box view

* new baselines

* Revert "new baselines"

This reverts commit f7a5d059eda70fa4d49e3024923da30e8821f42b.

* Revert "box view"

This reverts commit a57924be36e7d6abc2585aca9575c74cd583ef86.

* maximize dcg

Co-authored-by: Comma Dev1ce <device@comma.ai>
2023-01-17 14:16:28 -08:00
ZwX1616
028527423c camerad: rework ox exposure score (#26948)
* wip

* make separate score func

* n4ot g

* clean up

* remove

* simplify

* b2b

* balance costs

* clean up

* no if tici

* box view

* new baselines

* Revert "new baselines"

This reverts commit f7a5d059eda70fa4d49e3024923da30e8821f42b.

* Revert "box view"

This reverts commit a57924be36e7d6abc2585aca9575c74cd583ef86.

Co-authored-by: Comma Device <device@comma.ai>
2023-01-13 21:32:15 -08:00
Adeeb Shihadeh
cd8e03d53e move all third party stuff into third_party/ (#26853)
* mv fastcluster

* move msm_kgsl.h

* camerad include

* update path

* mv pyextra

* fix tici build

* add acados_template to release build

Co-authored-by: Comma Device <device@comma.ai>
2022-12-31 21:00:50 -08:00
ZwX1616
e6e33531ca camerad: lower cost for OX high gain idxs (#26775) 2022-12-12 16:35:25 -08:00
ZwX1616
2153bfe27a camerad: minor ae improvement to OX (#26566) 2022-11-23 13:08:04 -08:00
ZwX1616
5eaf525c18 camerad: fix OX flicker (#26439) 2022-11-09 21:49:24 -08:00
Kurt Nistelberger
4ec1c7e614 CI: camera box update (#26414)
* check if all frames are laggy

* apply tolerance

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2022-11-08 13:51:16 -08:00
ZwX1616
aab4b79416 CI: set OX frame sync tolerance (#26347)
* ox tolerate

* int

* update comments
2022-11-03 14:27:45 -07:00
ZwX1616
fdd125853f camerad: fix OX not having vignetting comp (#26329) 2022-11-02 14:42:29 -07:00
Rohit Bernard
9377448888 sim: Converting RGB frames to NV12 format in OpenCL (#26169)
* convert carla rgb frames to nv12

* code cleanup

* move kernel

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-10-29 13:20:37 -07:00
Adeeb Shihadeh
2384a9ee67 fix autobrightness for OX03C10 (#25915)
* fix autobrightness for OX03C10

* fix scaling

* use cur ev

* oops

* bump cereal
2022-09-28 15:45:15 -07:00
Adeeb Shihadeh
1c6dc12a04 camerad: improved frame sync and skip tests (#25904)
* camerad: cleanup frame sync and skip tests

* fix linter

Co-authored-by: Comma Device <device@comma.ai>
2022-09-27 21:32:21 -07:00
ZwX1616
4ed0abd197 camerad: recalibrate ox colors for HDR (#25874)
re
2022-09-22 12:52:48 -07:00
ZwX1616
bae94a0070 camerad: fix OX page faults (#25853) 2022-09-20 16:00:56 -07:00
Dean Lee
8870b439dd camerad: fix class/struct forward declaration mistake (#25842) 2022-09-19 13:24:20 -07:00
Dean Lee
8ae3199578 camerad: make sure cl_context is valid for lifetime of camerad (#25735) 2022-09-16 21:10:26 -07:00
Dean Lee
78fd303d50 camerad: cleanup CameraBuf::acquire (#25737)
* cleanup

* add that back

* less indent

Co-authored-by: Comma Device <device@comma.ai>
2022-09-16 20:50:10 -07:00
Dean Lee
5bb230cde4 camerad: remove function camera_autoexposure (#25733) 2022-09-16 20:18:54 -07:00
Dean Lee
25ce997f37 CameraBuf: remove unused member 'camera_state' (#25736) 2022-09-16 20:11:46 -07:00
Dean Lee
467c4f7fb3 camera_qcom2: remove unneeded static keywords (#25780) 2022-09-16 20:10:08 -07:00
ZwX1616
c7a0f23b45 better OX03C10 settings (#25796)
* ev has different scales

* fix initial gradient

* fix highlight weirdness

* try smooth set of gains

* delay

* add gain idx

* oops

* set different min dc

Co-authored-by: Comma Device <device@comma.ai>
2022-09-15 15:06:43 -07:00
Adeeb Shihadeh
7352e6d940 camerad: log image sensor in camera states (#25786)
* camerad: log image sensor in camera states

* for all cams

* bump cereal

* revert that

Co-authored-by: Comma Device <device@comma.ai>
2022-09-14 15:40:29 -07:00
Dean Lee
29f9c536b4 camerad: build camerad on PC (#25726)
* compile camerad on PC

* scons cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-09-11 13:56:38 -07:00
Dean Lee
1c8aa88161 camera_qcom2: move util functions to separate files (#25720) 2022-09-10 14:22:43 -07:00
George Hotz
aea1a0d5e6 port OX03C10 (#25161)
* start porting OS04C10

* something

* is the pll why this doesn't work

* understand plls, still doesn't work

* work

* weee something

* working?

* timing

* encoderd works with less cameras

* 1928

* flip image

* color balance

* adjust black level

* extra height maybe

* cleanups

* clean up sensor i2c

* sensors

* approx 20fps

* remove mirror

* 50ms, no fsin yet

* remove imx390 support

* some attempt at AE

* linearize the response

* OX changes (#25697)

* organize

* wb

* best effort but probably messed up by artifacts

* multicam sync

Co-authored-by: Comma Device <device@comma.ai>

* clean up

* more

* fix multiexposure

* start porting OS04C10

* something

* is the pll why this doesn't work

* understand plls, still doesn't work

* work

* weee something

* working?

* timing

* encoderd works with less cameras

* 1928

* flip image

* color balance

* adjust black level

* extra height maybe

* cleanups

* clean up sensor i2c

* sensors

* approx 20fps

* remove mirror

* 50ms, no fsin yet

* remove imx390 support

* some attempt at AE

* linearize the response

* OX changes (#25697)

* organize

* wb

* best effort but probably messed up by artifacts

* multicam sync

Co-authored-by: Comma Device <device@comma.ai>

* clean up

* more

* fix multiexposure

* unbroken AE

* oops

* sort of good AE

* both should work 1

* open then init

* fix debayer

* rename

* fix test build

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: ZwX1616 <zwx1616@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-09-09 22:38:00 -07:00
Robbe Derks
7ecc0409bd camerad: read param to see if we want manual gain (#25642)
* also read params to determine if we want manual gains

* check for larger than 0

Co-authored-by: Comma Device <device@comma.ai>
2022-09-01 22:18:44 -07:00
ZwX1616
e9258cccbe camerad: optional exposure params overrides (#25616)
* add params override

* speedup

* put in param list

* clean up names

Co-authored-by: Comma Device <device@comma.ai>
2022-08-31 16:40:25 -07:00
Adeeb Shihadeh
6590fb2b93 pre-commit: add codespell (#25571) 2022-08-30 11:20:55 -07:00
Adeeb Shihadeh
90a4565eb2 params: make python and c++ API match (#25573)
* params: make python and c++ API match

* few more
2022-08-26 20:46:19 -07:00
Adeeb Shihadeh
c626198575 webcam isn't a special build anymore 2022-08-26 20:44:29 -07:00
Adeeb Shihadeh
6bbea8080e only build camera test on pc 2022-08-25 19:59:22 -07:00
Dean Lee
405e6c046d CameraBuf: remove unused cur_rgb_buf (#25544)
rm cur_rgb_buf
2022-08-24 11:03:12 -07:00
Willem Melching
f38204ad26 camerad: cleanup unused RGB code (#25172)
* camerad: cleanup unused RGB code

* hdr is unused

* more cleanup

* remove envs

* remove from sconsfile

* fix docs
2022-07-14 19:21:40 +02:00
Dean Lee
d13137a83f camerad: reduce cpu usage (#24993)
wait for 50ms
2022-06-30 11:29:25 +02:00
Dean Lee
e20d2cfa9b Camerad: small cleanup (#24992)
* remove CameraExpInfo

* remove release callback
2022-06-30 11:05:49 +02:00
Maxime Desroches
240c44e50c snapshot: fix rgb overflow (#24963)
clamp rgb
2022-06-27 15:36:27 +02:00
Adeeb Shihadeh
6123ab3d1c Move camerad to system/ (#24836)
* mv camerad

* add hardware symlink

* fix unit tests
2022-06-19 14:43:49 -07:00