Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

Running Demo with Movidius on Ubuntu16.04

SC_Huang
Beginner
675 Views

I was trying CV SDK in version 2018.1.249 on Ubuntu16.04, running the security barrier camera sample with myriadPlugin, but i got problem shown as below..

End with ERROR about OpenCV

What could be the problem?

###################################################

Run Inference Engine security_barrier_camera sample

Run ./security_barrier_camera_sample -d MYRIAD -i ~/Videos/MOV_0333.mp4 -m /opt/intel/computer_vision_sdk/deployment_tools/demo/../intel_models/vehicle-license-plate-detection-barrier-0007/FP16/vehicle-license-plate-detection-barrier-0007.xml -m_va /opt/intel/computer_vision_sdk/deployment_tools/demo/../intel_models/vehicle-attributes-recognition-barrier-0010/FP32/vehicle-attributes-recognition-barrier-0010.xml -m_lpr /opt/intel/computer_vision_sdk/deployment_tools/demo/../intel_models/license-plate-recognition-barrier-0001/FP32/license-plate-recognition-barrier-0001.xml

InferenceEngine:
    API version ............ 1.0
    Build .................. 10478
[ INFO ] Parsing input parameters
[ INFO ] Reading input
[ INFO ] Loading plugin MYRIAD

    API version ............ 0.1
    Build .................. myriadPlugin
    Description ....... myriadPlugin
[ INFO ] Loading plugin CPU

    API version ............ 1.0
    Build .................. lnx_20180314
    Description ....... MKLDNNPlugin
[ INFO ] Loading network files for VehicleDetection
[ INFO ] Batch size is forced to  1
[ INFO ] Checking Vehicle Detection inputs
[ INFO ] Checking Vehicle Detection outputs
[ INFO ] Loading Vehicle Detection model to the MYRIAD plugin
[ INFO ] Loading network files for VehicleAttribs
[ INFO ] Batch size is forced to 1 for Vehicle Attribs
[ INFO ] Checking VehicleAttribs inputs
[ INFO ] Checking Vehicle Attribs outputs
[ INFO ] Loading Vehicle Attribs model to the CPU plugin
[ INFO ] Loading network files for Licence Plate Recognition (LPR)
[ INFO ] Batch size is forced to  1 for LPR Network
[ INFO ] Checking LPR Network inputs
[ INFO ] Checking LPR Network outputs
[ INFO ] Loading LPR model to the CPU plugin
[ INFO ] Start inference
OpenCV(3.4.1-cvsdk_2018_1.0.5) Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in resize, file ../../../../../src/modules/imgproc/src/resize.cpp, line 4044
[ ERROR ] OpenCV(3.4.1-cvsdk_2018_1.0.5) ../../../../../src/modules/imgproc/src/resize.cpp:4044: error: (-215) ssize.width > 0 && ssize.height > 0 in function resize

Error on or near line 112; exiting with status 1

0 Kudos
2 Replies
Maksim_S_Intel
Employee
675 Views

The error says that an empty image had been passed to cv::resize function. There can be a problem with your input video file or the FFMpeg library installation. Try to play it with the ffplay utility:

ffplay ~/Videos/MOV_0333.mp4

 

0 Kudos
SC_Huang
Beginner
675 Views

 

I've tried the ffplay command, the video can be played well.

I also tried other image, like the default demo image "/demo/car_1.bmp" and load MYRIAD plugin,

Still get the same error in the resize function.

But if I use "-d CPU" with FP32 and "-d GPU" with FP16, It works successfully ..

I can't understand why that function can not get the video or image when i use MYRIAD plugin..

0 Kudos
Reply