heroku-buildpack-vips | Heroku buildpack with vips | Platform As A Service library
kandi X-RAY | heroku-buildpack-vips Summary
kandi X-RAY | heroku-buildpack-vips Summary
Heroku buildpack with [libvips] installed. Current vips version is 7.42.3 with webp 0.4.0, libtiff 4.0.3, orc 0.4.18, fftw 3.3.4, libgsf 1.14.30, imagemagick 6.9.1 and lcms 2.6.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of heroku-buildpack-vips
heroku-buildpack-vips Key Features
heroku-buildpack-vips Examples and Code Snippets
Community Discussions
Trending Discussions on heroku-buildpack-vips
QUESTION
I'm trying to open a videoURL using cv2.VideoCapture on Heroku, and it consistently fails to open. I've called the same code on my local machine (Windows 10) and it ran with no problems. Does anyone have recommendations/buildpacks/alternatives to resolve this?
OpenCV Version: 3.4.2.16
Python: 3.7
Current Buildpacks:
- https://github.com/cstavish/heroku-buildpack-vips.git
- https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git
- https://github.com/heroku/heroku-buildpack-apt
- heroku/python
- https://github.com/timanovsky/subdir-heroku-buildpack
Open Cv Build info (Video) from the Heroku Dyno
...ANSWER
Answered 2020-Aug-16 at 08:09My apologies for the delay. I am assuming you are using pip
to install OpenCV.
The answer to your question is that for OpenCV 3.x, Mac OS and Linux (and ultimately the environment that Heroku is run under) do not link with FFMPEG which means that video support is not enabled for those platforms. However, it is enabled with Windows. This is the reason why there is an inconsistency between the platforms: What is the deal with `pip install opencv-python` is it a full opencv?
The solution is you will either need to build OpenCV 3.x from source, or use OpenCV 4 which now bundles FFMPEG with it. I would highly recommend you use OpenCV 4 unless there is something blocking you from using it. However to install OpenCV 4, use either pip install --upgrade opencv-python
or pip install --upgrade opencv-contrib-python
. I'm not sure which flavour you are using, but either one should work.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install heroku-buildpack-vips
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page