Comments (8)
My bad, I didn't download the models first. Both python and C++ code can run now. Thanks
from learnopencv.
@vishwesh5 Can you please check?
from learnopencv.
Hi @KeepRaamAndCarryOn!
Can you try this out?
g++ -ggdb object_detection_yolo.cpp `pkg-config --cflags --libs /usr/local/lib/pkgconfig/opencv.pc` -o object_detection_yolo.out
Vishwesh
from learnopencv.
@vishwesh5
Tried:
g++ -ggdb object_detection_yolo.cpp `pkg-config --cflags --libs /usr/local/lib/pkgconfig/opencv.pc` -o object_detection_yolo.out
Error:
object_detection_yolo.cpp:75:31: error: no matching function for call to ‘std::basic_ifstream<char>::basic_ifstream(std::__cxx11::string&)’
ifstream ifile(str);
from learnopencv.
@KeepRaamAndCarryOn
Go to line 75, and change ifstream ifile(str);
to ifstream ifile(str.c_str());
.
from learnopencv.
@vishwesh5 made the change in line 75 and 85. Compiled successfully. Thanks!
However I'm facing this when I tried to run:
./object_detection_yolo.out --image=bird.jpg
Is it an unrelated issue?
Error:
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(3.4.2) /opt/opencv/modules/dnn/src/darknet/darknet_io.cpp:784: error: (-212:Parsing error) Failed to parse NetParameter file: yolov3.cfg in function 'ReadNetParamsFromCfgFileOrDie'
Aborted (core dumped)
from learnopencv.
@KeepRaamAndCarryOn
Can you try the Python code? If that works, we can figure out the issue with C++ code as well.
from learnopencv.
Great! Glad that the issue was resolved :)
from learnopencv.
Related Issues (20)
- Automatic-Document-Scanner - not working HOT 2
- Is the more code for article "What is Face Detection? Ultimate Guide 2023 + Model Comparison"? HOT 1
- VAE_Cartoon_Tensorflow Training HOT 4
- How to use OpenCV DNN Module on Windows with c++ HOT 3
- opencv_face_detector_uint8.pb missing HOT 5
- pkg-config: No such file or directory
- How to effectively judge image clarity by opencv ? HOT 1
- Reshape issue while running net.forward() HOT 3
- opencv4 doesn't have TrackerBoost::create() function not found as well as for TLD and MEDIANFLOW HOT 2
- ## DCGAN
- Face morphing
- How to Normalize Object Segmentation Dataset? HOT 1
- OpenCV
- Build was not completed correctly.
- When I give make -j12 its not build completely :OpenCv-CUDA-Module
- Cannot run "Human-Action-Recognition-Using-Detectron2-And-Lstm"
- The VideoStabilization demo contains an access violation
- Contour-Detection-using-OpenCV/cpp/contour_approximations/contour_approx.cpp 65行代码是不是写错了 HOT 2
- Potential performance issue in Face-Recognition-with-ArcFace: plotting slow in matplotlib == 3.3.0
- Error how can i resolve it HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learnopencv.