-
Notifications
You must be signed in to change notification settings - Fork 31
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
Getting error while serve the microblink code #48
Comments
Hi @pjain8889, Sorry for the delayed answer. I wasn't able to reproduce this issue. Could you provide more information about the technical environment on your side? In particular, could you share the following information:
At first look, it seems like there are multiple versions of our SDK in your system, but I cannot be 100% sure. Sincerely, |
I am not getting Type '"BASIC"' is not assignable to type 'WasmType' issue in codepen. I am getting this issue only in my code. Please ignore the above error shows in first screenshot. It is fixed now. Thanks, |
I'm still not able to reproduce the issue with Could you provide us with the complete integration code for the UI component? For example, this is the relevant TypeScript code in our official example, and everything works fine. At least on my local machine in Visual Studio Code. // Import typings for UI component
import "@microblink/blinkid-in-browser-sdk/ui";
// Import typings for custom events
import
{
EventFatalError,
EventScanError,
EventScanSuccess
} from "@microblink/blinkid-in-browser-sdk/ui/dist/types/utils/data-structures";
function initializeUiComponent()
{
const blinkId = document.querySelector( "blinkid-in-browser" ) as HTMLBlinkidInBrowserElement;
if ( !blinkId )
{
throw "Could not find UI component!";
}
blinkId.wasmType = "BASIC";
blinkId.licenseKey = "...";
blinkId.engineLocation = window.location.origin;
blinkId.recognizers = [ "BlinkIdRecognizer" ];
...
}
window.addEventListener( "DOMContentLoaded", () => initializeUiComponent() ); |
I am using angular framework and using the code this way : **import * as BlinkIDSDK from "@microblink/blinkid-in-browser-sdk"; const loadSettings = new BlinkIDSDK.WasmSDKLoadSettings(license_key);
BlinkIDSDK.loadWasmModule(loadSettings).then Is there anything I am missing? I am following the below codepen URL for implementation: NOTE: Earlier, I was using the In-browser SDK 5.7.0 version. Thanks, |
Oh, thank you for the information, now everything makes sense :) When using BlinkID In-browser in the TypeScript environment, it's advised to look at the examples written in TypeScript. For example, BlinkID camera scan example can be found here. Since everything is in the TypeScript environment, it's not possible to use To solve this issue, instead of a string, provide an enum for Let me know if this has fixed your issue. Sincerely, |
Thanks, It works. Can you please let me know which link should I follow to check the document Type and where I will get the document type in the micro blink response? Should I follow the below link to document type in In-browser SDK? Thanks, |
Hi @pjain8889, I'm glad everything is now working as expected. The Sincerely, |
Just want to know, what is the document type in mrz json because I am seeing classinfo and mrz have different document type. Thanks, |
@pjain8889, could you provide more details about this problem? I would like to point out that MRZ has a different data structure than the On the other hand, the Also, some documents don't have a MRZ, so it's much more reliable to get information about document type from the Here's an example when a user scans a German passport:
|
Hi @pjain8889, Do you have anything new regarding this issue? That is, have you managed to integrate our SDK as intended? Sincerely, |
Hi @vjekoart, I saw this issue with multiple documents. Can you please let me know what is the issue here? Thanks, |
Hi @pjain8889, As I can see from the provided results, you're getting the same document type. Property On the other hand, property Sincerely, |
Hi @vjekoart, Thanks for the clarification above. I just have one more query that the currentsettings() is not working for "CreateBlinkIdRecognizer". I have a single function to handle the single side scan and double side scan so using different recognizer as per the sides but it gives an error when calling createBlinkIDRecognizer for the single side. Please let me know what I am missing here. How can I fix it? Thanks, |
I update the In browser SDK version and when to compile, I am getting multiple errors.
Please let me know what I am missing here.
I tried to follow the "https://codepen.io/microblink/pen/BajeeMx" URL but I am getting an error there also.
@microblink folder is updated with basics/advanced/advanced-threads when i run the command npm install :
npm install @microblink/blinkid-in-browser-sdk
Thanks!
The text was updated successfully, but these errors were encountered: