Ask Your Question

dbaggio's profile - activity

2015-08-27 21:15:10 -0600 commented question Add book link on OpenCV page

Thanks, but I have already sent them an email, without answer. I'll wait for them to have some time to do it. Thank you!

2015-08-25 23:53:20 -0600 asked a question Add book link on OpenCV page

Hi,

I'd like to know how to add a book information on OpenCV book pages: http://opencv.org/books.html

My information would be the following: "OpenCV 3.0 Computer Vision with Java" https://www.packtpub.com/application-...

Here is a short description for the book:

What You Will Learn

Create powerful GUIs for computer vision applications with panels, scroll panes, radio buttons, sliders, windows, and mouse interaction using the popular Swing GUI widget toolkit Stretch, shrink, warp, and rotate images, as well as apply image transforms to find edges, lines, and circles, and even use Discrete Fourier Transforms (DFT) Detect foreground or background regions and work with depth images with a Kinect device Learn how to add computer vision capabilities to rock solid Java web applications allowing you to upload photos and create astonishing effects Track faces and apply mixed reality effects such as adding virtual hats to uploaded photos Filter noisy images, work with morphological operators, use flood fill, and threshold the important regions of an image Open and process video streams from webcams or video files

Thanks in advance, Daniel

2015-08-25 23:53:19 -0600 answered a question how to create trackbar in opencv with java API

There's an example on how to create swing GUI with Java OpenCV. The full source is available here: https://github.com/JavaOpenCVBook/cod... You can compile and run it in a couple minutes using maven and the information here: https://github.com/JavaOpenCVBook/code

You would basically have to put a JSlider to your JFrame, and the code there would be something like this:

    private void setupSlider(JFrame frame) {
    JLabel sliderLabel = new JLabel("Blur level", JLabel.CENTER);
    sliderLabel.setAlignmentX(Component.CENTER_ALIGNMENT);

    int minimum = 0;
    int maximum = 10;
    int initial =0;

    JSlider levelSlider = new JSlider(JSlider.HORIZONTAL,
            minimum, maximum, initial);

    levelSlider.setMajorTickSpacing(2);
    levelSlider.setMinorTickSpacing(1);
    levelSlider.setPaintTicks(true);
    levelSlider.setPaintLabels(true);
    levelSlider.addChangeListener(new ChangeListener() {

        public void stateChanged(ChangeEvent e) {
            JSlider source = (JSlider)e.getSource();
            int level = (int)source.getValue();
            Mat output = imageProcessor.blur(image, level);
            updateView(output);         
        }
    });

    frame.add(sliderLabel);
    frame.add(levelSlider);
}
2015-08-25 23:53:19 -0600 asked a question Publish Java OpenCV Book information on www.opencv.org site

Hi,

I'd like to say that a new OpenCV book for Java is available from PacktPub, and that open source code is available through github. How can I ask anyone to update www.opencv.org site to include that info?

Thanks in advance