Comments (6)
Yes, it works, thank you!
from dlib.
If you had compiled your example with DLIB_ASSERT
statements enabled it would have thrown "frame doesn't have correct format". This is a good example of why we should discourage users to use ffmpeg::frame
instances directly, and instead use dlib image container types. The documentation should be clear on how to use them and convert to and from dlib objects. However, you can still make mistakes. If you use the API to read directly into matrix<rgb_pixel>
objects for example (or array2d<bgr_pixel>
or whatever) then it should always do the right thing. I have use-cases for using ffmpeg::frame
directly as i need to use the untampered YUV frames coming straight out the codec. But those use-cases are rare.
from dlib.
Yep will check when I get to work
from dlib.
Yep. It's not a bug with the implementation details or ffmpeg version, it's the example. When reading "ffmpeg::frame" instances, we're not asking it to convert pixel format to RGB. They are coming out as YUV. The easiest thing is to use the simpler API and read directly into array2d<rgb_pixel>
. I'll submit PR.
from dlib.
I have a PR. Let me know if that fixes it on your end. Cheers
from dlib.
We can also use DLIB_CASSERT which is always activated for key functions. Like where we think it doesn't have a meaningful performance impact in any use case and would catch what's likely to be a common user error.
from dlib.
Related Issues (20)
- [Serialization] support std::chrono objects HOT 13
- [Bug]: bind_front() and bind_back() fail with gcc 5.5 HOT 2
- dlib website release update HOT 5
- [Bug]: CUDA 11.8 & CUDNN 8 ISSUE | ImportError: DLL load failed while importing _dlib_pybind11: The specified module could not be found HOT 3
- [Bug]: HOT 4
- Get Dlib version used to create models HOT 2
- [Bug]: dlib won't install because of building wheels? HOT 7
- [Bug]: ERROR Backend subprocess exited when trying to invoke build_wheel HOT 1
- Please build the wheel files. HOT 5
- [Bug]: cuda_utils.h:164. code: 98, reason: invalid device function with the latest CUDA toolkits and cuDNN v12.3 HOT 4
- Build breaks with Gitlab CI Windows Shared Runner HOT 2
- [Bug]: Wrong gradients in the CUDA implementation of Layer Norm HOT 10
- FACING ERROR OF INSTALLING DLIB WHEELS HOT 8
- [Bug]: Training randomly crashes with cuda_error: invalid device function HOT 8
- C++ and TensorRT implementation of yolov5face yolov7face yolov8face HOT 3
- [Bug]: Zero Sized Image (letterbox_image function: img_out size must be bigger than zero, but was 0x0) HOT 2
- [Bug]: dlib fails to build with DLIB_USE_MKL_WITH_TBB when installing MKL via libmkl-dev HOT 4
- Error while running a program HOT 24
- Loading the frontal face shape predictor calls 135053 times malloc. HOT 10
- [Bug]: g++.exe: error: /bigobj: linker input file not found: No such file or directory HOT 6
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 dlib.