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.
6577 Discussões

AttributeError: module 'mvnc.mvncapi' has no attribute 'global_set_option'

idata
Funcionário
6.015 Visualizações

while running real time object recognition using caffe graph i got following error ,

 

python3 ./detectionExample/Main.py --video 0

 

Traceback (most recent call last):

 

File "./detectionExample/Main.py", line 6, in

 

from ObjectWrapper import *

 

File "/home/pi/Downloads/YoloV2NCS-master/detectionExample/ObjectWrapper.py", line 17, in

 

class ObjectWrapper():

 

File "/home/pi/Downloads/YoloV2NCS-master/detectionExample/ObjectWrapper.py", line 18, in ObjectWrapper

 

mvnc.global_set_option(mvnc.GlobalOption.RW_LOG_LEVEL, 2)

 

AttributeError: module 'mvnc.mvncapi' has no attribute 'global_set_option'

 

pls help out

 

thanking you
0 Kudos
30 Respostas
idata
Funcionário
1.458 Visualizações

@Hashir

 

◆mono-vo (English)

 

https://github.com/PINTO0309/mono-vo.git
idata
Funcionário
1.458 Visualizações

@PINTO , thank you for your valuable help. Actually I gone through your tiny yolo model in pi , everything goes well except webcam result. Bcz webcam result was just live video, no detection, no bounding boxes. How can I solve this ?

 

Thanks in advance
idata
Funcionário
1.458 Visualizações

@Hashir

 

There is not enough information to know the problem.

 

     

  1. First of all, I want to know the specifications of Bcz Webcam. Please let me know if there is a product URL.
  2.  

  3. Which is the "your tiny yolo model" repository? Please tell me the URL specifically.

     

    https://github.com/PINTO0309/OpenVINO-YoloV3.git

     

    or

     

    https://github.com/PINTO0309/TinyYolo.git
  4.  

  5. If an error message is displayed, please let me know the error message.
  6.  

idata
Funcionário
1.458 Visualizações

@PINTO ,

 

I'm using ncsdk version 1( just API version only not full version). I just followed all the steps you mentioned in this GitHub repository "https://github.com/PINTO0309/TinyYolo", and ran that multistick.py script. Everything goes well except webcam result. Bcz there were no errors in terminal, graph loaded well, ncs loaded well even webcam also . But webcam just open and shows real time video only , it didn't show a single detection or a Bounding box or even a prediction etc . Pls help me out to solve this

 

Thanks in advance

 

Hashir
idata
Funcionário
1.458 Visualizações

@PINTO

 

Here i'm attaching error i got when i ran your Multistick.py script from TinyYolo Github repository. [https://drive.google.com/open?id=0B14y6ZzK-_HzVHFYdE9hN1VDdEs2eXViMVN0SVZMemJhMXdZ]
idata
Funcionário
1.458 Visualizações

@Hashir

 

$ sudo apt install libdrm-* $ sudo apt update $ sudo apt upgrade $ sudo -H pip3 install numpy --upgrade
idata
Funcionário
1.458 Visualizações

@PINTO

 

What is meant by

 

libGL error: MESA-LOADER: failed to retrieve device information,. Ist due to opencl or hardware problem like webcam .

 

Thanks in advance

 

Hashir
idata
Funcionário
1.458 Visualizações

@PINTO

 

Once again thank you for your kind help. I will let you know if I get result without error using your commands. But in the mean time I would like to know two more things.

 

1) in your multistick.py script , I changed some of the webcam commands to picam commands. But some of the webcam functions didn't accept for using picam. But I got something , but it's seems to be not working well.so do you know what are changes should I follow in order to use picam instead of webcam.

 

2) in your tinyYoLO model(GitHub), can you suggest me how to count detected objects (especially vehicles)

 

Thanks in advance

 

Hashir
idata
Funcionário
1.458 Visualizações

@Hashir

 

 

What is meant by

 

libGL error: MESA-LOADER: failed to retrieve device information,. Ist due to opencl or hardware problem like webcam .

 

https://bugs.launchpad.net/raspbian/+bug/1656930

 

1)

 

Please see the following.

 

https://github.com/PINTO0309/MobileNet-SSD-RealSense/blob/master/MultiStickSSDwithPiCamera_OpenVINO_NCS2.py

 

2)

 

Please see the following.

 

https://www.pyimagesearch.com/2018/07/23/simple-object-tracking-with-opencv/

 

idata
Funcionário
1.458 Visualizações

@PINTO

 

$ sudo apt install libdrm-*

 

$ sudo apt update

 

$ sudo apt upgrade

 

$ sudo -H pip3 install numpy --upgrade.

 

i did this 4 steps. but i got the same error. pls help me to solve this. here am attaching with the error.

 

https://drive.google.com/file/d/0B14y6ZzK-_HzQnJ3OF9oN21lUUZVRDVGVDZoRk9LLVZ1anln/view?usp=sharing

 

thanks in advance

 

hashir
Responder