Got it

How to build googlenet_imagenet_picture (samples) using MindStudio 3.0.1 on Windows 10?

Created: Apr 29, 2021 18:12:56Latest reply: Apr 30, 2021 09:08:02 385 9 0 0 0
  HiCoins as reward: 0 (problem unresolved)

Dear all,


I try to build googlenet_imagenet_picture (samples) using MindStudio 3.0.1 on Windows 10.

util

Error:

It need opencv2/opencv.hpp


err


I got 

C:\Users\O6281\AppData\Roaming\Python\Python37\site-packages\opencv_python-4.4.0.46.dist-info

op

lib

Where are the library files?


How to solve this problem?

Thank you very much in advance.


Warmest Regards,

Suryadi



Featured Answers

Recommended answer

Pengcheng
Created Apr 30, 2021 08:12:01

You still need to modify “link_directories” in CMakeLists.txt. Try it.
View more
  • x
  • convention:

All Answers
Hello User. we are reviewing your question and we will answer you shortly. Thanks.
View more
  • x
  • convention:

Hi,It seems that the code could not find opencv *.h files. can you have a try
1、 change environment variable, add opencv path. install window acl lib, change
2、 change src/Cmakelists.txt, change the include path that points to the right opencv place
View more
  • x
  • convention:

I do have opencv and opencv-contrib installed inside Atlas 200 DK.

hpp


I modified src/CMakeLists.txt

inc

Still not enough.


Please help. Thank you.


Warmest Regards,

Suryadi

View more
  • x
  • convention:

It maybe $ENV{HOME}/opencv/include . have a try !
View more
  • x
  • convention:


try this.

include_directories(
$ENV{HOME}/ascend_ddk/${ARCH}/include/opencv4
$ENV{HOME}/ascend_ddk/${ARCH}/include/
${INC_PATH}/acllib/include/
$ENV{HOME}/opencv/include/
$ENV{HOME}/opencv/modules/core
../inc/
)
View more
  • x
  • convention:

I modified src/CMakeLists.txt

cc


The problem is at linking with

-Lopencv_core -Lopencv_imgproc -Lopencv_imgcodecs

link

How to solve this problem?

Thank you very much in advance.


Warmest Regards,

Suryadi


View more
  • x
  • convention:

You still need to modify “link_directories” in CMakeLists.txt. Try it.
View more
  • x
  • convention:

Dear Pengcheng,

libs

It works! The next step is to convert into om file.


Thank you.


Warmest Regards,

Suryadi

View more
  • x
  • convention:

Posted by sliawatimena at 2021-04-30 08:47 Dear Pengcheng,It works! The next step is to convert into om file.Thank you.Warmest Regards,Suryadi
Good luck.
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.