Currently, the camera fixture test can only tell whether data are dumped onto memory. This is to check further if the image content is correct. The algorithm is rather simple: compare the average color of each bar of a generated pattern with a predefined target in CIELAB76 color space (which is nearly perceptually uniform). Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
37 lines
1006 B
YAML
37 lines
1006 B
YAML
sample:
|
|
name: Video capture
|
|
tests:
|
|
sample.video.capture:
|
|
tags:
|
|
- video
|
|
- shield
|
|
- samples
|
|
extra_args:
|
|
- platform:mimxrt1064_evk:SHIELD="dvp_fpc24_mt9m114;rk043fn66hs_ctg"
|
|
- platform:mimxrt1170_evk/mimxrt1176/cm7:SHIELD="nxp_btb44_ov5640;rk055hdmipi4ma0"
|
|
- platform:mimxrt1170_evk@B/mimxrt1176/cm7:SHIELD="nxp_btb44_ov5640;rk055hdmipi4ma0"
|
|
extra_configs:
|
|
- CONFIG_TEST=y
|
|
- CONFIG_FPU=y
|
|
harness: console
|
|
harness_config:
|
|
fixture: fixture_camera
|
|
type: multi_line
|
|
ordered: true
|
|
regex:
|
|
- "Got frame \\d+"
|
|
- "size: \\d+;"
|
|
- "timestamp \\d+"
|
|
- "Pattern OK"
|
|
platform_allow:
|
|
- arduino_nicla_vision/stm32h747xx/m7
|
|
- mimxrt1064_evk
|
|
- mimxrt1170_evk/mimxrt1176/cm7
|
|
- mimxrt1170_evk@B/mimxrt1176/cm7
|
|
- mm_swiftio
|
|
- esp32s3_eye/esp32s3/procpu
|
|
depends_on: video
|
|
integration_platforms:
|
|
- mimxrt1064_evk
|
|
- mimxrt1170_evk/mimxrt1176/cm7
|