smbape Posted July 13, 2024 Author Posted July 13, 2024 @konya DLL load failure is a surprise for me. Have you downloaded the new opencv version, not juste the new udf? Can you verify that you are using opencv 4.10.0 dll and not openvv 4.7.0 dll when opening the udf dll?
konya Posted July 15, 2024 Posted July 15, 2024 (edited) @smbape I'm have test more for 4100 version, have chinese path will fail,the same 470 issue is open image have chinese path will fail. Edited July 15, 2024 by konya
k_u_x Posted September 7, 2024 Posted September 7, 2024 Hello. Use a translator Communication may not be smooth. First of all, some computers are experiencing DLL load errors. opencv_get() <-- Error occurring in this part. As a result of testing, it seems to be related to the authority. Do you know any solution to this error?
k_u_x Posted September 7, 2024 Posted September 7, 2024 An additional version of 4.10.0 is in use. This is an error that works fine, but only occurs on some computers.
smbape Posted September 13, 2024 Author Posted September 13, 2024 Hello @k_u_x There is not enough information. Follow these instructions and if it does not work, please provide there errors you have.
unspeaking Posted October 3, 2024 Posted October 3, 2024 Please help me.It show error "Error: unable to load opencv_world4100.dll".
smbape Posted October 5, 2024 Author Posted October 5, 2024 Hello @unspeaking Please follow these instructions and if it does not work, please provide there errors you have.
unspeaking Posted October 6, 2024 Posted October 6, 2024 10 hours ago, smbape said: Hello @unspeaking Please follow these instructions and if it does not work, please provide there errors you have. I followed the instructions, but I'm still getting the error as shown in the picture.
smbape Posted October 6, 2024 Author Posted October 6, 2024 (edited) Hello @unspeaking It seems like you are not using the x64 version of AutoIt. Can you run the following command "C:\Program Files (x86)\AutoIt3\AutoIt3_x64.exe" "C:\Users\t0n\Desktop\script\TestOpencv\node-autoit-opencv-com-2.6.2\samples\02.1-show-image-gui-autosize.au3" If the file AutoIt3_x64.exe is missing, then your AutoIt installation does not have the x64 version. Reinstall AutoIt with the x64 version. If it works, then, the #AutoIt3Wrapper_UseX64=y directive can only be used on the full SciTE editor. To check that, can you install the full SciTE editor here When running the script from SciTE, there should be a line Running:(3.3.16.1):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe Edited October 6, 2024 by smbape
unspeaking Posted October 6, 2024 Posted October 6, 2024 7 hours ago, smbape said: Hello @unspeaking It seems like you are not using the x64 version of AutoIt. Can you run the following command "C:\Program Files (x86)\AutoIt3\AutoIt3_x64.exe" "C:\Users\t0n\Desktop\script\TestOpencv\node-autoit-opencv-com-2.6.2\samples\02.1-show-image-gui-autosize.au3" If the file AutoIt3_x64.exe is missing, then your AutoIt installation does not have the x64 version. Reinstall AutoIt with the x64 version. If it works, then, the #AutoIt3Wrapper_UseX64=y directive can only be used on the full SciTE editor. To check that, can you install the full SciTE editor here When running the script from SciTE, there should be a line Running:(3.3.16.1):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe Thank you.It works.
k_u_x Posted Saturday at 06:21 AM Posted Saturday at 06:21 AM (edited) Func start() AdlibRegister("opencv",300) While 1 .. .. .. WEnd EndFunc ;==>start Func opencv() If Not IsObj($cv) Then Return Local $aRect[4] = [0,0,1280,600] Local $img1 = _OpenCV_GetDesktopScreenMat($aRect) $cv.waitKey() $cv.destroyAllWindows() EndFunc "C:\Game&Progrom\AutoIt3\Include\opencv\opencv_udf_utils.au3" (813) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: $minVal = $cv.extended[0] $minVal = $cv^ ERROR Hello. I'm using the script well First of all, thank you. The wider the search range and the more searched images, the slower it is Is there a good way? Is there a way to keep capturing it in real time? And errors occur when using it in timer format. I'll be waiting for the reply. Edited Saturday at 06:22 AM by k_u_x
smbape Posted Sunday at 09:09 PM Author Posted Sunday at 09:09 PM Hello @k_u_x, to be honest, when it comes to speed, Autoit is not the best choice. A while loop without a sleep, like cv.waitKey(10) will put too much pressure on the CPU. Concerning speeding up the search process, you can resize the image to a smaller size before performing the search. _OpenCV_GetDesktopScreenMat is more a proof a concept than a full speed function. It is better to copy the data in an existing data that creating a new one at each loop. You can also cv.UMat everywhere an Input/Ouput Array is expected. If done correctly, it will use your GPU instead of your CPU. It is also not sure that the searching process is slow, you need timings to confirm the slower parts. For inspiration, have a look at https://github.com/smbape/node-autoit-opencv-com/blob/main/samples/dnn/object_detection/object_detection.au3 https://github.com/smbape/node-autoit-opencv-com/blob/main/samples/tutorial_code/tapi/bgfg_segm.au3 Danyfirex 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now