GithubHelp home page GithubHelp logo

fengbingchun / opencv_test Goto Github PK

View Code? Open in Web Editor NEW
218.0 14.0 117.0 218.5 MB

fbc_cv is an open source image process library.

Home Page: http://blog.csdn.net/fengbingchun/article/category/721609

C++ 20.98% CMake 0.16% Shell 0.11% Makefile 0.69% Python 0.37% C 71.44% Batchfile 0.01% MATLAB 0.38% HTML 1.11% CSS 0.11% Clean 0.01% TeX 0.02% Objective-C 0.07% Roff 0.04% Inno Setup 0.01% JavaScript 0.04% Perl 0.04% Assembly 4.40% Cuda 0.02% Awk 0.01%

opencv_test's Introduction

OpenCV_Test

The main role of the project:

The version of each open source library see: version.txt

The project support platform:

  • windows10 64 bits: It can be directly build with VS2022 in windows10 64bits.
  • Linux:
    • OpenCV_Test support cmake build(file position: prj/linux_cmake_OpenCV_Test)
    • FFmpeg_Test support cmake build(test code include: FFmpeg, LIVE555; file position: prj/linux_cmake_FFmpeg_Test)

OpenCV's version: 3.1

  • close support for OpenCL/CUDA/SIMD/TBB/OpenMP when build with CMake
  • modify modules/core/include/opencv2/core/cvdef.h,close SIMD support: adjust line 167 to: #if 0
  • in order to keep the linux and windows results consistent, modify modules/core/include/opencv2/core/fast_math.hpp: make cvFound/cvFloor/cvCeil/cvRound to execute the last branch
  • insure that all algorithms are implemented with c++

fbc_cv

  • it is an open source image process library
  • most of the algorithms come from OpenCV3.1
  • it has a template class Mat_ replace of OpenCV's Mat class: src/fbc_cv/include/core/mat.hpp
  • interface names are consistent with OpenCV3.1
  • each algorithm's result is same with OpenCV3.1
  • the codes are written in C++ without dependence on any 3rd-party libraries

fbc_cv have been implemented include:

  • resize
  • cvtColor
  • merge/split
  • remap
  • warpAffine
  • rotate
  • warpPerspective
  • dilate
  • erode
  • morphologyEx
  • threshold
  • transpose
  • flip
  • dft/idft
  • Windows DShow, support codec type: mjpeg
    • opencv: 2.4.13.6, only get decoded data
    • ffmpeg: 4.2, only get encoded data

Python code(support windows and linux platform):

  • environment configuration
    • install anaconda
    • install imagemagick
    • execute the following command:
       conda create -n OpenCV_Test python=3.9
       conda activate OpenCV_Test
       git clone https://github.com/fengbingchun/OpenCV_Test
       cd OpenCV_Test/demo/Python
       pip install -r requirements.txt
      
    • modify Anaconda3/envs/OpenCV_Test/Lib/site-packages/moviepy/config_defaults.py
       IMAGEMAGICK_BINARY = os.getenv('IMAGEMAGICK_BINARY', 'auto-detect') # original statement
       IMAGEMAGICK_BINARY = os.getenv('IMAGEMAGICK_BINARY', 'the magick executable for the actual path, for example: C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\magick.exe') # modified statement
      
  • features

Screenshot:

Blog:

fbc_cv library licence: uses the same licence as OpenCV3.1

opencv_test's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opencv_test's Issues

resize算法求解

大佬请问一下你实现的 U8 的 resize 算法和 opencv 能做到 bit对齐吗?

dft.hpp代码src = dst过不了编译

很棒!但是昨天我在vs2017编译时保了以下错误:
C2679 二进制“=”: 没有找到接受“fbc::Mat_<float,2>”类型的右操作数的运算符(或没有可接受的转换)
似乎是vs的标准不允许chs不同的模板类之间的直接赋值,目前为止没有在2013上测试过,所以这可能是140+的限制?有没有什么办法避开这个问题呢?

在Ubuntu上编译的无法读取图像

在Ubuntu上编译的时候遇到以下几个问题:

1. src/fbc_cv/include/core 文件夹下的头文件有含有"core/XXX"的,同一个文件夹下不需要加"core/...."吧,不得不挨个删掉"core/",不知是否有更好的解决方法.

2. 无法读取图像的错误

原因是test_opencv_funset.cpp的18行,在linux平台下读取了

matSrc = cv::imread("lena.jpg");

should:

matSrc = cv::imread("test_images/lena.png");

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.