Comments (5)
As far as I know they reimplemented the PImage
class to remove dependencies to AWT. And not all methods have been implemented yet. This breaks a lot of sketches.
What we could do is resize the final image with OpenCV instead of Processing. Will have a look later.
from deep-vision-processing.
Here the information from Processing4:
/**
*
* Resize the image to a new width and height. To make the image scale
* proportionally, use 0 as the value for the <b>wide</b> or <b>high</b>
* parameter. For instance, to make the width of an image 150 pixels, and
* change the height using the same proportion, use resize(150, 0).<br />
* <br />
* Even though a PGraphics is technically a PImage, it is not possible to
* rescale the image data found in a PGraphics. (It's simply not possible
* to do this consistently across renderers: technically infeasible with
* P3D, or what would it even do with PDF?) If you want to resize PGraphics
* content, first get a copy of its image data using the <b>get()</b>
* method, and call <b>resize()</b> on the PImage that is returned.
*
* @webref pimage:method
* @webBrief Resize the image to a new width and height.
* @usage web_application
* @param w the resized image width
* @param h the resized image height
* @see PImage#get(int, int, int, int)
*/
public void resize(int w, int h) { // ignore
throw new RuntimeException("resize() not implemented for this PImage type");
}
from deep-vision-processing.
I fixed it in release 0.6.1.
Would be great if you could test it and give a quick feedback.
from deep-vision-processing.
from deep-vision-processing.
Ok great, I am working on integrating Midas 2.1 small which should run with 8 FPS at least. But that's a future topic.
from deep-vision-processing.
Related Issues (19)
- API structure proposal
- UnsatisfiedLinkError: no jniopenblas_nolapack HOT 4
- RuntimeException when running this example: NeuralStyleTransfer HOT 4
- Installation of 0.8.1 throws errors - I have also tested 0.8.0 and 0.7.0 HOT 1
- DeepSort NN - feature request HOT 2
- Dear cansic, Regarding the ‘Deep Vision Processing’ library
- fix examples for FX2d HOT 1
- OpenCV for Processing HOT 4
- can we implement Yolov 5 and 6 with custom data weights HOT 1
- use P2D / P3D without loadPixels
- Congrats, Installation and FPS HOT 17
- Created ONNX Pix2Pix implentation HOT 1
- Cannot use predefined weights in onnx format for YoloV5n, error is generated.
- Resolving "java.lang.RuntimeException" (-212:Parsing error) HOT 2
- realsense example breaks with realsense update 2.3.0 HOT 5
- YOLO and ULFG are lagging due to memory leak (maybe) HOT 3
- Nullpointer exception with Video Library and Processing 4 HOT 2
- CUDA Enabled error HOT 5
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 deep-vision-processing.