I use activity Digitize Document but Error “Digitize Document: The type initializer for ‘Emgu.CV.MatInvoke’ threw an exception.” Help me pls
Dependency Version
I use activity Digitize Document but Error “Digitize Document: The type initializer for ‘Emgu.CV.MatInvoke’ threw an exception.” Help me pls
Can you please open exception details from locals panel and show or check…it would contain information like what the exact issue is. looks like some reference is missing
cheers
What you opened is the message from log messages…
What I want you to open is the exception details from locals panel
Cheers
Sorry
https://sv1.picz.in.th/images/2023/06/02/FGCV1q.png
Full Error
RemoteException wrapping System.TypeInitializationException: The type initializer for 'Emgu.CV.MatInvoke' threw an exception. ---> RemoteException wrapping System.TypeInitializationException: The type initializer for 'Emgu.CV.CvInvoke' threw an exception. ---> RemoteException wrapping System.DllNotFoundException: Unable to load DLL 'cvextern' or one of its dependencies: The specified module could not be found. (0x8007007E)
at Emgu.CV.CvInvoke.RedirectError(CvErrorCallback errorHandler,
IntPtr userdata,
IntPtr prevUserdata)
at Emgu.CV.CvInvoke..cctor()
--- End of inner exception stack trace ---
at Emgu.CV.CvInvoke.Init()
at Emgu.CV.MatInvoke..cctor()
--- End of inner exception stack trace ---
at Emgu.CV.MatInvoke.cveMatCreate()
at Emgu.CV.Mat..ctor()
at Emgu.CV.BitmapExtension.ToMat(Bitmap bitmap)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.TableDetection.ImageBased.RectangleTableFinder.PreProcessImage(Bitmap image)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.TableDetection.ImageBased.RectangleTableFinder.FindTables(Bitmap bitmap,
String correlationId)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.TableDetection.ImageBased.ImageBasedTableDetector.Detect(Bitmap bitmap,
Single skewAngle,
Rotation rotation,
String correlationId)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.TableDetection.TableDetector.Detect(PageRendererResults renderedPage,
ImmutableArray`1 pageParts,
Rotation rotation,
Single skewAngle)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.TableDigitizer.DetectTablesInternal(ImmutableArray`1 pageParts,
ICachingPageRenderer renderer)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.TableDigitizer.<>c__DisplayClass4_0.<DetectTables>b__0()
at UiPath.IntelligentOCR.Activities.Digitization.DigitizationActivityScheduler.ScheduleProcessingTask[T](Func`1 func,
CancellationToken token)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.TableDigitizer.DetectTables(ImmutableArray`1 pageParts,
ICachingPageRenderer renderer,
DigitizationSettings settings,
CancellationToken token)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.PageDigitizer.ProcessPdfPageWithAuto(Content page,
IOcrEngine ocrEngine,
DigitizationSettings settings,
String contentId,
CachingPageRenderer renderer,
CancellationToken token)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.PageDigitizer.GetRawPage(Content page,
IOcrEngine ocrEngine,
Boolean shouldApplyOcr,
DigitizationSettings settings,
String contentId,
CancellationToken token)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.PageDigitizer.ProcessPage(IDigitizationDocument digitizationDocument,
Int32 pageNumber,
IOcrEngine ocrEngine,
Boolean shouldApplyOcr,
DigitizationSettings settings,
String contentId,
CancellationTokenSource source)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.DocumentDigitizer.GetPages(Content content,
DigitizationSettings settings,
IOcrEngine ocrEngine,
CancellationToken token)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.DocumentDigitizer.Digitize(Content content,
DigitizationSettings settings,
IOcrEngine ocrEngine,
CancellationToken token)
at UiPath.IntelligentOCR.Digitization.IntelligentOcrDigitizer.Digitize(Content content,
IOcrEngine ocrEngine,
ApplyOcrOnPdf applyOcrOnPdf,
Boolean detectCheckboxes,
IDigitizationScheduler scheduler,
IDigitizerTelemetryService telemetryService,
CancellationToken token)
at UiPath.IntelligentOCR.Activities.Digitization.DigitizeDocument.ExecuteAsync(NativeActivityContext context,
CancellationToken cancellationToken)
at UiPath.Shared.Activities.AsyncTaskNativeImplementation.BookmarkResumptionCallback(NativeActivityContext context,
Object value)
at UiPath.Shared.Activities.AsyncTaskNativeActivity.BookmarkResumptionCallback(NativeActivityContext context,
Bookmark bookmark,
Object value)
at System.Activities.Runtime.BookmarkCallbackWrapper.Invoke(NativeActivityContext context,
Bookmark bookmark,
Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)
As per error it is not able to load this dependency…please go to %userprofile%\.nuget\packages
and rename/delete the cv related packages from it…complete folders…now from the project redownload them from manage packages and check.Then it wahould freshly download…if this also throws the same error then try with a different package version
Cheers
What folder i should remove
aforge
aforge.imaging
aforge.math
automapper
avalonedit
azure.core
azure.identity
bitmiracle.docotic.pdf
bitmiracle.libtiff.net
bouncycastle
closedxml
commandprompt.activities
credentialmanagement
csvhelper
demo1_studio
documentformat.openxml
dotnetprojects.wpftoolkit.input
excelnumberformat
extended.wpf.toolkit
fsharp.core
google.apis
google.apis.auth
google.apis.calendar.v3
google.apis.core
google.apis.gmail.v1
google.apis.peopleservice.v1
htmlagilitypack
humanizer.core
imageadjustment.activities
interop.domino.dll
itextsharp
magick.net-q8-anycpu
magick.net.core
mailkit
markdig.signed
microsoft.activities
microsoft.activities.extensions
microsoft.applicationinsights
microsoft.aspnet.signalr.client
microsoft.aspnetcore.connections.abstractions
microsoft.aspnetcore.http.connections.client
microsoft.aspnetcore.http.connections.common
microsoft.aspnetcore.http.features
microsoft.aspnetcore.signalr.client
microsoft.aspnetcore.signalr.client.core
microsoft.aspnetcore.signalr.common
microsoft.aspnetcore.signalr.protocols.json
microsoft.azure.cognitiveservices.vision.computervision
microsoft.bcl.asyncinterfaces
microsoft.codeanalysis.analyzers
microsoft.codeanalysis.common
microsoft.codeanalysis.csharp
microsoft.codeanalysis.csharp.scripting
microsoft.codeanalysis.scripting.common
microsoft.codeanalysis.visualbasic
microsoft.csharp
microsoft.data.sqlclient
microsoft.data.sqlclient.sni
microsoft.data.sqlclient.sni.runtime
microsoft.dotnet.platformabstractions
microsoft.exchange.webservices
microsoft.extensions.caching.abstractions
microsoft.extensions.caching.memory
microsoft.extensions.configuration
microsoft.extensions.configuration.abstractions
microsoft.extensions.configuration.binder
microsoft.extensions.dependencyinjection
microsoft.extensions.dependencyinjection.abstractions
microsoft.extensions.dependencymodel
microsoft.extensions.filesystemglobbing
microsoft.extensions.logging
microsoft.extensions.logging.abstractions
microsoft.extensions.logging.tracesource
microsoft.extensions.options
microsoft.extensions.platformabstractions
microsoft.extensions.primitives
microsoft.graph
microsoft.graph.core
microsoft.identity.client
microsoft.identity.client.desktop
microsoft.identity.client.extensions.msal
microsoft.identitymodel.jsonwebtokens
microsoft.identitymodel.logging
microsoft.identitymodel.protocols
microsoft.identitymodel.protocols.openidconnect
microsoft.identitymodel.tokens
microsoft.management.infrastructure
microsoft.management.infrastructure.cimcmdlets
microsoft.management.infrastructure.runtime.unix
microsoft.management.infrastructure.runtime.win
microsoft.netcore.platforms
microsoft.netcore.targets
microsoft.netcore.windows.apisets
microsoft.powerfx.core
microsoft.powerfx.interpreter
microsoft.powerfx.transport.attributes
microsoft.powershell.commands.diagnostics
microsoft.powershell.commands.management
microsoft.powershell.commands.utility
microsoft.powershell.consolehost
microsoft.powershell.coreclr.eventing
microsoft.powershell.markdownrender
microsoft.powershell.native
microsoft.powershell.sdk
microsoft.powershell.security
microsoft.rest.clientruntime
microsoft.rest.clientruntime.azure
microsoft.visualbasic
microsoft.visualstudio.ole.interop
microsoft.web.webview2
microsoft.win32.primitives
microsoft.win32.registry
microsoft.win32.registry.accesscontrol
microsoft.win32.systemevents
microsoft.windows.compatibility
microsoft.windows.sdk.contracts
microsoft.wsman.management
microsoft.wsman.runtime
microsoft.xaml.behaviors.wpf
mimekit
namotion.reflection
nancy
netstandard.library
newtonsoft.json
nito.asyncex
nito.asyncex.context
nito.asyncex.coordination
nito.asyncex.interop.waithandles
nito.asyncex.oop
nito.asyncex.tasks
nito.cancellation
nito.collections.deque
nito.disposables
njsonschema
nlog
npoi
ntextcat
oracle.manageddataaccess
oracle.manageddataaccess.core
polly
portable.bouncycastle
reflectionmagic
restsharp
runtime.any.system.collections
runtime.any.system.diagnostics.tools
runtime.any.system.diagnostics.tracing
runtime.any.system.globalization
runtime.any.system.globalization.calendars
runtime.any.system.io
runtime.any.system.reflection
runtime.any.system.reflection.extensions
runtime.any.system.reflection.primitives
runtime.any.system.resources.resourcemanager
runtime.any.system.runtime
runtime.any.system.runtime.handles
runtime.any.system.runtime.interopservices
runtime.any.system.text.encoding
runtime.any.system.text.encoding.extensions
runtime.any.system.threading.tasks
runtime.any.system.threading.timer
runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl
runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl
runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl
runtime.linux-arm.runtime.native.system.io.ports
runtime.linux-arm64.runtime.native.system.io.ports
runtime.linux-x64.runtime.native.system.io.ports
runtime.native.system
runtime.native.system.data.sqlclient.sni
runtime.native.system.io.compression
runtime.native.system.io.ports
runtime.native.system.net.http
runtime.native.system.security.cryptography.apple
runtime.native.system.security.cryptography.openssl
runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl
runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl
runtime.osx-x64.runtime.native.system.io.ports
runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple
runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl
runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl
runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl
runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl
runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl
runtime.win-arm64.runtime.native.system.data.sqlclient.sni
runtime.win-x64.runtime.native.system.data.sqlclient.sni
runtime.win-x86.runtime.native.system.data.sqlclient.sni
runtime.win.microsoft.win32.primitives
runtime.win.system.console
runtime.win.system.diagnostics.debug
runtime.win.system.io.filesystem
runtime.win.system.net.primitives
runtime.win.system.net.sockets
runtime.win.system.runtime.extensions
runtime.win7-x64.runtime.native.system.io.compression
runtime.win7.system.private.uri
sharpziplib
showcase
showcase1
spire.pdf
system.activities.core.presentation
system.activities.metadata
system.activities.viewmodels
system.appcontext
system.buffers
system.codedom
system.collections
system.collections.concurrent
system.collections.immutable
system.collections.nongeneric
system.collections.specialized
system.componentmodel
system.componentmodel.annotations
system.componentmodel.composition
system.componentmodel.composition.registration
system.componentmodel.primitives
system.componentmodel.typeconverter
system.configuration.configurationmanager
system.console
system.data.datasetextensions
system.data.odbc
system.data.oledb
system.data.sqlclient
system.diagnostics.debug
system.diagnostics.diagnosticsource
system.diagnostics.eventlog
system.diagnostics.performancecounter
system.diagnostics.tools
system.diagnostics.tracing
system.directoryservices
system.directoryservices.accountmanagement
system.directoryservices.protocols
system.drawing.common
system.drawing.primitives
system.dynamic.runtime
system.formats.asn1
system.globalization
system.globalization.calendars
system.globalization.extensions
system.identitymodel.tokens.jwt
system.io
system.io.abstractions
system.io.compression
system.io.compression.zipfile
system.io.filesystem
system.io.filesystem.accesscontrol
system.io.filesystem.primitives
system.io.packaging
system.io.pipelines
system.io.pipes.accesscontrol
system.io.ports
system.linq
system.linq.async
system.linq.async.queryable
system.linq.expressions
system.management
system.management.automation
system.memory
system.memory.data
system.net.http
system.net.http.winhttphandler
system.net.nameresolution
system.net.primitives
system.net.sockets
system.numerics.vectors
system.objectmodel
system.private.servicemodel
system.private.uri
system.reflection
system.reflection.context
system.reflection.dispatchproxy
system.reflection.emit
system.reflection.emit.ilgeneration
system.reflection.emit.lightweight
system.reflection.extensions
system.reflection.metadata
system.reflection.primitives
system.reflection.typeextensions
system.resources.extensions
system.resources.resourcemanager
system.runtime
system.runtime.caching
system.runtime.compilerservices.unsafe
system.runtime.extensions
system.runtime.handles
system.runtime.interopservices
system.runtime.interopservices.runtimeinformation
system.runtime.numerics
system.runtime.serialization.formatters
system.runtime.serialization.primitives
system.runtime.windowsruntime
system.runtime.windowsruntime.ui.xaml
system.security.accesscontrol
system.security.claims
system.security.cryptography.algorithms
system.security.cryptography.cng
system.security.cryptography.csp
system.security.cryptography.encoding
system.security.cryptography.openssl
system.security.cryptography.pkcs
system.security.cryptography.primitives
system.security.cryptography.protecteddata
system.security.cryptography.x509certificates
system.security.cryptography.xml
system.security.permissions
system.security.principal
system.security.principal.windows
system.servicemodel.duplex
system.servicemodel.http
system.servicemodel.nettcp
system.servicemodel.primitives
system.servicemodel.security
system.servicemodel.syndication
system.serviceprocess.servicecontroller
system.text.encoding
system.text.encoding.codepages
system.text.encoding.extensions
system.text.encodings.web
system.text.json
system.text.regularexpressions
system.threading
system.threading.accesscontrol
system.threading.channels
system.threading.overlapped
system.threading.tasks
system.threading.tasks.dataflow
system.threading.tasks.extensions
system.threading.timer
system.valuetuple
system.windows.extensions
system.xml.readerwriter
system.xml.xdocument
system.xml.xmldocument
system.xml.xmlserializer
testrpa
tinycsvparser
uipath
uipath.activities.publiccontracts
uipath.activities.runtimegovernance
uipath.adobepdfservices.integrationservice.activities
uipath.baf.infrastructure
uipath.cefsharpbundle.netcore
uipath.codedworkflows
uipath.complexscenarios.activities
uipath.connectionclient
uipath.credentials.activities
uipath.database.activities
uipath.documentprocessing.contracts
uipath.documentunderstanding.digitizer
uipath.documentunderstanding.ml.activities
uipath.emgucvbundle
uipath.excel.activities
uipath.imageprocessing
uipath.integrationservice.infrastructure
uipath.intelligentocr.activities
uipath.mail.activities
uipath.microsoftoffice365.activities
uipath.ocr.activities
uipath.ocr.contracts
uipath.pdf.activities
uipath.platform
uipath.powerpoint.activities
uipath.presentations.activities
uipath.system.activities
uipath.system.runtime.legacy
uipath.system.runtime.portable
uipath.system.runtime.windows
uipath.telemetry.client
uipath.template.documentunderstandingprocess
uipath.template.reframework
uipath.testing.activities
uipath.uiautomation.activities
uipath.uiautomation.activities.runtime
uipath.vision
uipath.webapi.activities
uipath.word.activities
uipath.wordstonumbers
uipath.workflow
uipath.workflow.runtime
uipathteam.imageactionautocroppactivities
xceed.document.net
xceed.pdf
xceed.words.net
Hi @parinya.c - Did you try uninstalling UiPath.EmguCVBundle dependency from your project, restarting studio and check how that goes.
I try every way,It not work
I try it.But not work
Yes i try it
Is the inner exception same for that as well?
Please check this …I guess you need some updates to be installed
Cheers
I use window 11 Enterpise N.
Please search for the version you need for windows media patch …and try installing it
Cheers
It work!.Thank
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.