Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use debug in quagga 2 1.8.2 #490

Closed
lampsbr opened this issue Feb 24, 2023 · 2 comments
Closed

Can't use debug in quagga 2 1.8.2 #490

lampsbr opened this issue Feb 24, 2023 · 2 comments

Comments

@lampsbr
Copy link

lampsbr commented Feb 24, 2023

Hi,

I guess I'm mixing Quagga and Quagga 2 setup options, and in a bad way. I can't see the blue and red debug lines in my LiveStream. Can someone point what is wrong in my init object? =)

{
                inputStream: {
                    name: 'Live',
                    type: 'LiveStream',
                    target: '#liveCamModal',
                    constraints: {
                     width: 300,
                    height: 300,
                    }
                },
                frequency: 10,
                locate: true,
                locator: {
                    halfSample: false,
                    patchSize: "small", 
                    willReadFrequently: true,
                    debug: {
                        showCanvas: true,
                        showPatches: true,
                        showFoundPatches: true,
                        showSkeleton: true,
                        showLabels: true,
                        showPatchLabels: true,
                        showRemainingPatchLabels: true,
                        boxFromPatches: {
                            showTransformed: true,
                            showTransformedBox: true,
                            showBB: true
                        }
                    }
                },
                decoder: {
                    readers: ["ean_reader"],
                    debug: {
                        drawBoundingBox: true,
                        showFrequency: true,
                        drawScanline: true,
                        showPattern: true
                    },
                    multiple: false
                },
                debug: true
            }
@ericblade
Copy link
Owner

As far as I'm aware, debug options only work when you have also built the library in debug mode. If you want to draw your own boxes, you can lay a canvas on top of the video element and use the inputs to onProcessed or onDetected to draw.

@ericblade
Copy link
Owner

closing pending further feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants