face recognition using nxp-nnstreamer-examples

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

face recognition using nxp-nnstreamer-examples

2,291 次查看
jiangyaqiang
Contributor V
Hi : I have got a problem by using nxp-nnstreamer-examples. enviroment: imx8mp yocto-5.15.71 Problem description: Could not detect face when run example_face_recognition_tflite.py log:2023-05-11 17:27:14.039 WARNING: [secondary] bus error Internal data stream error. ../git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstAppSrc:appsrc_video: streaming stopped, reason error (-5) other infomration: it's ok of :example_face_detection_tflite.py Best Regards.
0 项奖励
回复
5 回复数

2,274 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @jiangyaqiang 

I hope you are doing well.

->It may be happening because of the incorrect width and height specified for the device, please take a look at it.

->One can also refer to this thread as it has the same error solved, one can also take reference from that.
https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/153...

->One can check the reason, which may be insufficient memory bandwidth.
-for DDR performance one can try the following command :
perf stat -e ddr0/read-cycles/,ddr0/write-cycles/ -a

->Bandwidth is restricted by processor internal buses bandwidth.

I hope this information helps you!

Thanks & Regards,

Sanket Parekh

0 项奖励
回复

2,248 次查看
jiangyaqiang
Contributor V

Hi Sanket Parekh:

 

        Thank you for the reply.

         My device using 3GB lpddr4 , I thinks the performance is ok. 

         And you has mentioned the "width and height" , what did you mean about it ?"width and height" of the display or video input , or what ? 

 

        Thanks & Regards!

        YaQiang.

0 项奖励
回复

2,214 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @jiangyaqiang ,

I hope you are doing well.

->Please make sure to correct the width and height specified for the device, Because as per the display resolution one has to set it otherwise the picture quality may get compromised.

->Width & height is related to the display configuration.

Please refer to the below-given example I have shared for reference.

lcd@0 {
            compatible = "samsung,ld9040";
            #address-cells = <1>;
            #size-cells = <0>;

            reg = <0>;
            vdd3-supply = <&ldo7_reg>;
            vci-supply = <&ldo17_reg>;
            reset-gpios = <&gpy4 5 0>;
            spi-max-frequency = <1200000>;
            spi-cpol;
            spi-cpha;
            power-on-delay = <10>;
            reset-delay = <10>;
            panel-width-mm = <90>;
            panel-height-mm = <154>;
};

I hope this information helps!

Thanks & Regards,

Sanket Parekh

0 项奖励
回复

2,188 次查看
jiangyaqiang
Contributor V

HI Sanket_Parekh:

 

Thanks.

But My platform used HDMI output, it should no problem with the output config.

I have tried 1080p and 720p.

 

Best Ragards

 

0 项奖励
回复

2,154 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @jiangyaqiang ,

I hope you are doing well.

->Please make sure to use the latest version of nxp-nnstreamer.
Please follow section 10 Vision Pipeline with NNStreamer of the user guide.

https://www.nxp.com/docs/en/user-guide/IMX-MACHINE-LEARNING-UG.pdf

Thanks & Regards,

Sanket Parekh

0 项奖励
回复