Skip to content

Commit 1172fc6

Browse files
committed
update usage of himax tflm sdk
1 parent c393404 commit 1172fc6

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ LIB_LOC = third_party/
2626
LIB_NAME = lib.zip
2727
THIRD_PARTY_LIB_NAME = third_party_lib_v04
2828

29-
SDK_LINK = https://www.himax.com.tw/we-i/himax_we1_sdk_v20.zip
29+
SDK_LINK = https://www.himax.com.tw/we-i/himax_we1_sdk_v21.zip
3030
SDK_LOC = .
3131
SDK_NAME = sdk.zip
3232

@@ -349,6 +349,7 @@ CCFLAGS+= \
349349
-I./third_party/kissfft/tools
350350

351351
LDFLAGS+= \
352+
-buildlib \
352353
$(MLI_PATH)/libmli.a \
353354
-Hheap=8192 \
354355
-Hnocopyr \
@@ -364,6 +365,7 @@ $(SDK_PATH)/liblibcommon.a \
364365
$(SDK_PATH)/liblibaudio.a \
365366
$(SDK_PATH)/liblibsecurity.a \
366367
$(SDK_PATH)/liblibsensordp.a \
368+
$(SDK_PATH)/liblibclib.a \
367369
$(SDK_PATH)/liblibtflm.a
368370

369371
else ifeq ($(ARC_TOOLCHAIN), gnu)
@@ -456,6 +458,7 @@ $(SDK_PATH)/liblibcommon.a \
456458
$(SDK_PATH)/liblibaudio.a \
457459
$(SDK_PATH)/liblibsecurity.a \
458460
$(SDK_PATH)/liblibsensordp.a \
461+
$(SDK_PATH)/liblibclib.a \
459462
$(SDK_PATH)/liblibtflm.a \
460463
-Wl,--end-group
461464
endif # ARC_TOOLCHAIN

examples/handwriting/himax_we1_evb/image_provider.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ TfLiteStatus GetImage(tflite::ErrorReporter* error_reporter, int image_width,
2727
static bool is_initialized = false;
2828

2929
if (!is_initialized) {
30+
g_pimg_config.sensor_type = HX_DRV_SENSOR_TYPE_HM0360_MONO;
31+
g_pimg_config.format = HX_DRV_VIDEO_FORMAT_YUV400;
32+
g_pimg_config.img_width = 640;
33+
g_pimg_config.img_height = 480;
3034
if (hx_drv_sensor_initial(&g_pimg_config) != HX_DRV_LIB_PASS) {
3135
return kTfLiteError;
3236
}

examples/person_detection/himax_we1_evb/image_provider.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ TfLiteStatus GetImage(tflite::ErrorReporter* error_reporter, int image_width,
3131
static bool is_initialized = false;
3232

3333
if (!is_initialized) {
34+
g_pimg_config.sensor_type = HX_DRV_SENSOR_TYPE_HM0360_MONO;
35+
g_pimg_config.format = HX_DRV_VIDEO_FORMAT_YUV400;
36+
g_pimg_config.img_width = 640;
37+
g_pimg_config.img_height = 480;
3438
if (hx_drv_sensor_initial(&g_pimg_config) != HX_DRV_LIB_PASS) {
3539
return kTfLiteError;
3640
}

0 commit comments

Comments
 (0)