subdir-heroku-buildpack | use subdirectory configured via environment variable | Platform As A Service library
kandi X-RAY | subdir-heroku-buildpack Summary
kandi X-RAY | subdir-heroku-buildpack Summary
Add as a first buildpack in the chain. Set PROJECT_PATH environment variable to point to project root. It will be promoted to slug's root, everything else will be erased. Following buildpack (e.g. nodejs) will finish slug compilation. Disclaimer: I may change the code without notice, so always pin to specific github version. Provided as is.
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 subdir-heroku-buildpack
subdir-heroku-buildpack Key Features
subdir-heroku-buildpack Examples and Code Snippets
Community Discussions
Trending Discussions on subdir-heroku-buildpack
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 subdir-heroku-buildpack
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