kendryte / kendryte-standalone-demo

Demo of kendryte k210 standalone SDK
https://github.com/kendryte/kendryte-standalone-sdk
229 stars 97 forks source link

Need a VGA (640x480) Demo for Better Object Detection #36

Open zyayoung opened 5 years ago

zyayoung commented 5 years ago

Make sure you read and understand this document. Use one of the two templates below and delete the rest.


FEATURE REQUEST

Missing feature

VGA (640x480) demo for dvp ov2640.

Modify the https://github.com/kendryte/kendryte-standalone-demo/tree/develop/dvp_ov demo to support VGA (640x480)

Justification

I would like to detect small objects on K210, and some applications don't need to have high fps. If KPU doesn't support high resolution input, we can simply crop the higher resolution image and run detection region by region. But high resolution image is needed in the first place.

Workarounds

https://github.com/kendryte/kendryte-standalone-demo/blob/d3e18308cedd6a493b3dd0bd197eaf382b52482b/dvp2sdcard/main.c#L195

I've changed this line, but the result i got is not what i want. DVP simply put the 320x240 image on the top left corner. I think it may have something to do with the driver https://github.com/kendryte/kendryte-standalone-demo/blob/develop/dvp2sdcard/ov2640.c

However, I'm not experienced in embedded systems. I have tried to modify the values in ov2640_config, but I can't find a way to make it work. Maybe the driver in openmv or Maixpy can be applied, but it is too complicated.

zhoumiaomiao commented 3 years ago

I have the same problem. Do you have solve the problem to support VGA (640x480)?