Git Product home page Git Product logo

Comments (3)

VoidSalts avatar VoidSalts commented on May 18, 2024

方便的话,可以在
// //opencv的处理 cv::Mat src_cv = cv::imread("../200.jpg"); std::cout << src_cv.cols << " " << src_cv.rows << std::endl;

这里前面加上一句
std::cout << "file read access : "<< access("../200.jpg", R_OK) << std::endl;
(头文件加下#include <unistd.h>)
看下输出么

from flycv.

caoxiang520 avatar caoxiang520 commented on May 18, 2024

file read access : 0

from flycv.

VoidSalts avatar VoidSalts commented on May 18, 2024

我这边在x86的linux系统上试了下,确实有这个现象
目前推测原因是flycv与opencv的图像编解码实现都基于libpng,libjpeg/libturbojpeg等开源三方库,在一起链接时,如果版本不一致导致的问题
类似现象参考(开源库dlib与opencv一同使用时,imread为空):https://stackoverflow.com/questions/59945307/cvimread-fails-in-c-project-when-we-mix-opencv-and-dlib
短期解决方案:两者共用时,图像IO仅使用其中一种

from flycv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.