Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/06/2021 in all areas

  1. Yeah I found this utility from that thread https://www.nirsoft.net/utils/control_my_monitor.html You can control it via the command line so you could do it in AutoIT very easily
    1 point
  2. That code could give you a head start...
    1 point
  3. smbape

    Opencv UDF

    Hi @Lion66 Here is how to do it Local $ptemp = _cveImreadAndCheck("wally3.jpg") _cveImshowMat("Original", $ptemp) Local $angle = 10 ; Rotation angle in degrees. Positive values mean counter-clockwise rotation Local $scale = 1 ; Isotropic scale factor ; grab the dimensions of the image and calculate the center of the image Local $size = _cvSize() _cveMatGetSize($ptemp, $size) Local $center = DllStructCreate($tagCvPoint2D32f) $center.x = $size.width / 2 $center.y = $size.height / 2 ; rotate our image by $angle degrees around the center of the image ; this is done by computing the rotation matrix with _cveGetRotationMatrix2DMat ; then apply the rotation matrix on the image with _cveWarpAffineMat #Region compute the rotation matrix Local $rot_mat = _cveMatCreate() _cveGetRotationMatrix2DMat($center, $angle, $scale, $rot_mat) #EndRegion compute the rotation matrix #Region apply the rotation matrix ; The rotated image width is below max(width, height) * $scale ; The rotated image height is below max(width, height)$angle ; For simplicity, put the image in a matrix of size { width, height} ; Otherwise, we should apply $rot_mat on each corner the image, ; then compute the rotated image size from the rotated corners Local $rotated = _cveMatCreate() _cveWarpAffineMat($ptemp, $rotated, $rot_mat, $size, $CV_INTER_LINEAR) #EndRegion apply the rotation matrix ; display the rotated imgage _cveImshowMat("Rotated", $rotated) _cveWaitKey()
    1 point
  4. I actually used to do this as well. I have two computers and two monitors. In the morning I switch to my work computer by moving the cords from my personal computer. Windows politely remembers your last screen setup, but if you don't plug them in simultaneously then it's two changes. DisplaySwitch.exe is what you're looking for from what I can tell. It won't let you select your primary display, but you can choose how your second screens are used. DISPLAYSWITCH - Windows CMD - SS64.com If you do want to change your primary display at the same time, I think UI Automation or some 3rd party apps are required. StackOverflow is failing me by providing the same answer repeatedly Edit: This will jump you directly to the display settings screen rundll32.exe shell32.dll,Control_RunDLL desk.cpl
    1 point
  5. You may want to try to use Modi.OCR com object. Was reading your image with no problem. Tested a text with quite a few numbers in it, and all were read properly...
    1 point
  6. I haven't researched this, but I imagine that it is possible to complete these actions without resorting to scripting the GUI. Maybe a registry edit or a setting you can toggle using an existing command line utility.
    1 point
  7. Latest update just released. See below for change log.
    1 point
×
×
  • Create New...