face recognition using nxp-nnstreamer-examples

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

face recognition using nxp-nnstreamer-examples

819 Views
jiangyaqiang
Contributor IV
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 Kudos
5 Replies

802 Views
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 Kudos

776 Views
jiangyaqiang
Contributor IV

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 Kudos

742 Views
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 Kudos

716 Views
jiangyaqiang
Contributor IV

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 Kudos

682 Views
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 Kudos