Comments (5)
Could you provide an example image? Similar bugs have popped up in the past because there are so many possible formats inside of BufferedImages.
from boofcv.
Please see files attached. Used jpg here because of sizes. This is an image captured via v4l from a webcam.
from boofcv.
I actually need the original image since it's the internal color model that got screwed up. However, it might be fixed in the current GIT code. The most recent stable release requires you to manually call ConvertBufferedImage.orderBandsIntoRGB() to put it into RGB or RGBA order, one of the examples goes over this. In the latest code this is handled by a flag in convertFromMulti() and convertTo(). In both of those functions set orderRgb to true and it "should" be handled correctly.
from boofcv.
Hello Peter, thanks for the tip. OrderBandsIntoRGB fixes the issue. However I don't understand your request of the original image. The image I provided is the original one and should be loaded via ImageIO.
BufferedImage read = ImageIO.read(new File("/tmp/analyze.jpg")); MultiSpectral srcImg = ConvertBufferedImage.convertFromMulti(read, null, ImageFloat32.class); try { // ConvertBufferedImage.orderBandsIntoRGB(srcImg, read); ImageIO.write(ConvertBufferedImage.convertTo(srcImg, null), "jpg", new File("/tmp/analyze-converted.jpg")); } catch (IOException ignored) { }
from boofcv.
From your message it sounded like the original image was in PNG format, but you converted it into a JPEG? If that is the case then the way color is encoded was change and I wouldn't be able to reproduce the problem on my end exactly the same.
Since orderBandsIntoRGB fixed it I'm going to close this ticket. In the next release I'm going to change how ConvertBufferedImage handles color to make it easier to use.
from boofcv.
Related Issues (20)
- Failure to detect in case with multiple high version QR in one image HOT 1
- Maven can't find 0.40.1, even via https://jitpack.io HOT 2
- Cannot decode these Qr codes HOT 1
- In Android, Conflict between protobuf-java and protobuf-javalite. HOT 4
- BoofCV Qr Scanner and Flutter HOT 2
- RuntimeException when decoding specific files HOT 4
- Micro QR Detection HOT 3
- Real Time SLAM capabilities update HOT 1
- Faster Point Cloud Rendering
- Can't decode this QR-Code HOT 1
- Update snakeyaml to address CVE-2022-1471 vulnerability HOT 1
- Outdated dependencies HOT 4
- Bug in Release 0.43 HOT 3
- Cannot decode numeric QR codes containing exactly 4 digits HOT 2
- False positive finder pattern detection inside QR code HOT 2
- Automated check to make sure examples and demos build correctly
- Micro QR-codes are not detected HOT 4
- Micro QR Codes don't ignore malformed padding HOT 3
- 0.43.1 Problem ? HOT 1
- In 0.42 and before there's a code injection vulnerability of `boofcv.io.calibration.CalibrationIO.load` HOT 1
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 boofcv.