sipeed / MaixPy3

Python sdk for Sipeed Maix-II-Dock(v831). Other board please use https://github.com/sipeed/MaixPy

Home Page:https://wiki.sipeed.com/maixpy3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Access direct camera Image - sp2305_mipi

ricardojlrufino opened this issue · comments

Hi I wonder if you can help me.

I have an IP camera (Yi Y20GA) that uses the same image sensor used in https://www.seeedstudio.com/Sipeed-MAIX-Dock-p-4815.html.
I'm trying to access her, but I found last information about her.

I was able to compile the framework: https://github.com/lindenis-org/lindenis-v536-softwinner/

But I can not make it work with this sensor

I get this error:

[ISP]cannot find sp2305_mipi_1936_1096_20_0 isp config!!!
....
[CAMERA_ERR] select timeout,end capture thread!

Full log:

[CAMERA] Using format parameters LBC_2_5X.
[CAMERA] camera pixelformat: LBC_2_5X
[CAMERA] Resolution size : 1936 * 1096
[CAMERA] The photo save path is /tmp.
[CAMERA] The number of photos taken is 5.
[CAMERA] Camera capture framerate is 20/1
[CAMERA] VIDIOC_S_FMT succeed
[CAMERA] fmt.type = 9
[CAMERA] fmt.fmt.pix_mp.width = 1936
[CAMERA] fmt.fmt.pix_mp.height = 1096
[CAMERA] fmt.fmt.pix_mp.pixelformat = LBC_2_5X
[CAMERA] fmt.fmt.pix_mp.field = 1
[CAMERA_DEBUG] reqbuf number is 3
[CAMERA_DEBUG] map buffer index: 0, mem: 0xb69ff000, len: 145600, offset: 0
[CAMERA_DEBUG] map buffer index: 1, mem: 0xb68b9000, len: 145600, offset: 146000
[CAMERA_DEBUG] map buffer index: 2, mem: 0xb6773000, len: 145600, offset: 28c000
[CAMERA] stream on succeed
[ISP]video device name is vin_video0
cutils:D/AWIspApi: F:awIspGetIspId, L:48, video0 --> isp0
>>>>>>>>>>>>>>>>>>>> ISP VERSION INFO <<<<<<<<<<<<<<<<<<<
[ISP]version:V1.00
[ISP]tag   : isp-500-520-v2.00
[ISP]branch: a50_merge
[ISP]commit: 924456a4a4b18b614a8273f282b25ad4ee59f417
[ISP]date  : Tue Feb 12 17:03:31 2019 +0800
[ISP]author: zhengjiangwei
--------------------------------------------------------

[ISP]register sensor entity is sp2305_mipi
[ISP]open isp device[0] success!
[ISP_WARN]open /mnt/isp0_ctx_saved.bin success!!!
[ISP]cannot find sp2305_mipi_1936_1096_20_0 isp config!!!
[ISP]use default isp config.
[ISP]create isp0 server thread!
[CAMERA] capture num is [0]
[CAMERA_ERR] select timeout,end capture thread!
[CAMERA] Capture thread finish
[CAMERA_DEBUG]***************************************************************
[CAMERA_DEBUG] Query the actual frame rate.
 select timeout, measure the frame rate failed
[CAMERA_DEBUG] camera fps = 0.0.
[CAMERA_DEBUG]***************************************************************
[ISP_ERR] func: events_loop, line: 162,isp0 event select timeout
[ISP_WARN]open /mnt/isp0_ctx_saved.bin success!!!
[CAMERA] close /dev/video0
[CAMERA_ERR] capture_photo return error

I tried all the formats you have in the example

./camerademo YUV422P 1936 1096 0 bmp /tmp 5 debug
./camerademo YUV420 1936 1096 0 bmp /tmp 5 debug
./camerademo YVU420 1936 1096 0 bmp /tmp 5 debug
./camerademo NV16 1936 1096 0 bmp /tmp 5 debug
./camerademo NV12 1936 1096 0 bmp /tmp 5 debug
./camerademo NV61 1936 1096 0 bmp /tmp 5 debug
./camerademo NV21 1936 1096 0 bmp /tmp 5 debug
./camerademo HM12 1936 1096 0 bmp /tmp 5 debug
./camerademo YUYV 1936 1096 0 bmp /tmp 5 debug
./camerademo YVYU 1936 1096 0 bmp /tmp 5 debug
./camerademo UYVY 1936 1096 0 bmp /tmp 5 debug
./camerademo VYUY 1936 1096 0 bmp /tmp 5 debug
./camerademo BA81 1936 1096 0 bmp /tmp 5 debug
./camerademo GBRG 1936 1096 0 bmp /tmp 5 debug
./camerademo GRBG 1936 1096 0 bmp /tmp 5 debug
./camerademo RGGB 1936 1096 0 bmp /tmp 5 debug
./camerademo BG10 1936 1096 0 bmp /tmp 5 debug
./camerademo GB10 1936 1096 0 bmp /tmp 5 debug
./camerademo BA10 1936 1096 0 bmp /tmp 5 debug
./camerademo RG10 1936 1096 0 bmp /tmp 5 debug
./camerademo BG12 1936 1096 0 bmp /tmp 5 debug
./camerademo GB12 1936 1096 0 bmp /tmp 5 debug
./camerademo BA12 1936 1096 0 bmp /tmp 5 debug
./camerademo RG12 1936 1096 0 bmp /tmp 5 debug
./camerademo MJPEG 1936 1096 0 bmp /tmp 5 debug
./camerademo H264 1936 1096 0 bmp /tmp 5 debug
commented

This is an error with no corresponding ISP configuration