Chip | PICO_S8_V1 |
---|---|
ESP32-S3 | |
ESP32-P4 |
name | input(hwc) | preprocess(us) | model(us) | postprocess(us) |
---|---|---|---|---|
pico_s8_v1_s3 | 224 * 224 * 3 | 27693 | 118350 | 2389 |
pico_s8_v1_p4 | 224 * 224 * 3 | 14342 | 55585 | 1410 |
PedestrianDetect
Cpp
PedestrianDetect *detect = new PedestrianDetect();
Cpp
dl::image::img_t img = {.data=DATA, .width=WIDTH, .height=HEIGHT, .pix_type=PIX_TYPE};
std::list<dl::detect::result_t> &res = dl::detect->run(img);
More details, see dl::image::img_t
and dl::detect::result_t
.
See Kconfig.
This component supports to load model from three different locations.
Note
If model location is set to FLASH partition, partition.csv
must contain a partition named pedestrian_det
, and the partition should be big enough to hold the model file.
When model locates in sdcard, you can change the model directory relative to the sdcard mount point.
The default value of this option is models/s3
for ESP32S3 and models/p4
for ESP32P4.
When using default value, just copy models folder to sdcard root directory.
Note
Do not change the model name when copy the models to sdcard.
9ff3eaab3e4e5a583a4db43c4001fd05022c8748
idf.py add-dependency "espressif/pedestrian_detect^0.2.2"