This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-TDA4VM: Tiovix - IMX568 simple graph problem

Part Number: SK-TDA4VM

Tool/software:

Hello Expert,

I am trying to create a simple graph with v4l2 and viss module (see code below) for an IMX568 camera (linux driver for camera was developed in house).

We are using SDK 09_02_00_05 and the edgeai-app-stack repo: b6ff3ac11bf1c672eaa63f6dfadfa819da02c4b9.

Currently the final YUV image is very blurry.

Original image and viss module output:

I have separated the v4l2 and viss module. Using only the VISS module, which reads in a raw image from a file, is working fine. Using the v4l2 module and mapping the DMA from the tiovx_buffer->handle inside the v4l2_capture_module also gives back a good raw image. Something between these modules seems to distort either the raw image or something else is happening inside the v4l2 module which I don't understand.

I have tried to reduce the fps to ~30 and change the graph scheduling, but the problem is still the same.

Any help or insight would help! Thank you very much!

Best Regards,

Andras

CODE:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <unistd.h>
#include <TI/tivx.h>
#include <tiovx_modules.h>
#include <v4l2_capture_module.h>
#include <tiovx_utils.h>
#include <app_init.h>
#define APP_BUFQ_DEPTH (7)
//#define APP_NUM_CH (1)
#define APP_NUM_ITERATIONS (20)
#define INPUT_WIDTH (1236)
#define INPUT_HEIGHT (1032)
#define SENSOR_NAME "SENSOR_SONY_IMX568"
#define DCC_VISS "/opt/imaging/imx568/linear/dcc_viss.bin"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Output of code:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
APP: Init ... !!!
MEM: Init ... !!!
MEM: Initialized DMA HEAP (fd=5) !!!
MEM: Init ... Done !!!
IPC: Init ... !!!
IPC: Init ... Done !!!
REMOTE_SERVICE: Init ... !!!
REMOTE_SERVICE: Init ... Done !!!
30.807099 s: GTC Frequency = 200 MHz
APP: Init ... Done !!!
30.810698 s: VX_ZONE_INIT:Enabled
30.810731 s: VX_ZONE_ERROR:Enabled
30.810746 s: VX_ZONE_WARNING:Enabled
30.813495 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-0
30.813642 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-1
30.813738 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-2
30.813893 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-3
30.813919 s: VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
30.819293 s: VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!!
Running test successful!
33.497632 s: VX_ZONE_INIT:[tivxHostDeInitLocal:115] De-Initialization Done for HOST !!!
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX