Giter Club home page Giter Club logo

Comments (22)

cracker0dks avatar cracker0dks commented on August 26, 2024 1

thank you very much for this great tutorial 🥳

from captchasolver.

AlanTuring42 avatar AlanTuring42 commented on August 26, 2024

Just did this as mentioned here: (https://pjreddie.com/darknet/yolo/) and now I can say confidently darknet is working too.
Screenshot:
Screenshot 2023-05-28 at 1 56 54 PM

Also tbt I'm not 100% sure what the step 3 in Compile darknet on your own method mean. Do I copy and paste all file from Darknet folder to /JDownloader 2.0/tools/offlineCaptchaSolver/darknet64/ folder or I'm missing smthn.

btw here's my test.bat file screenshot:
Screenshot 2023-05-28 at 1 38 25 PM

from captchasolver.

cracker0dks avatar cracker0dks commented on August 26, 2024

I don't have a mac and can't really help you with that, sry.
But take a look here please: #7 (comment)
This should answer a lot of questions you have. Maybe I should put this into the mac install readme?

The test.bat is only a test working on windows (for debugging if you miss a windows .dll file)

from captchasolver.

AlanTuring42 avatar AlanTuring42 commented on August 26, 2024

Ok so what I've learned from #7 is I've got most of thing right already. But the issue's are atm with the node and npm.

Here's my log file spitting out this errors:
node:internal/modules/cjs/loader:1085
throw err;
^

Error: Cannot find module 'jimp'
Require stack:

  • /Applications/JDownloader 2.0/tools/offlineCaptchaSolver/ocr.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)
    at Module._load (node:internal/modules/cjs/loader:928:27)
    at Module.require (node:internal/modules/cjs/loader:1149:19)
    at require (node:internal/modules/helpers:121:18)
    at Object. (/Applications/JDownloader 2.0/tools/offlineCaptchaSolver/ocr.js:1:12)
    at Module._compile (node:internal/modules/cjs/loader:1267:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1321:10)
    at Module.load (node:internal/modules/cjs/loader:1125:32)
    at Module._load (node:internal/modules/cjs/loader:965:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ '/Applications/JDownloader 2.0/tools/offlineCaptchaSolver/ocr.js' ]
    }

Node.js v20.1.0

from captchasolver.

cracker0dks avatar cracker0dks commented on August 26, 2024

try to run "npm install" in this folder: "JDownloader 2.0/tools/offlineCaptchaSolver" and try again. Your npm modules are missing.

from captchasolver.

AlanTuring42 avatar AlanTuring42 commented on August 26, 2024

Lol I was trying to npm install on the wrong directory. Anyways it works

from captchasolver.

AlanTuring42 avatar AlanTuring42 commented on August 26, 2024

Error is gone but the new error occurs.

Running -> keep2share.cc
keep2share.cc
/bin/sh: ./darknet: is a directory
node:child_process:960
throw err;
^

Error: Command failed: cd darknet64 && ./darknet detector test data/obj.data yolov4-tiny-custom.cfg yolov4-tiny-custom_last.weights -dont_show temp.jpg
/bin/sh: ./darknet: is a directory

at checkExecSyncError (node:child_process:885:11)
at execSync (node:child_process:957:15)
at Timeout._onTimeout (/Applications/JDownloader 2.0/tools/offlineCaptchaSolver/ocr.js:71:30)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7) {

status: 126,
signal: null,
output: [
null,
Buffer(0) [Uint8Array] [],
Buffer(35) [Uint8Array] [
47, 98, 105, 110, 47, 115, 104, 58,
32, 46, 47, 100, 97, 114, 107, 110,
101, 116, 58, 32, 105, 115, 32, 97,
32, 100, 105, 114, 101, 99, 116, 111,
114, 121, 10
]
],
pid: 44787,
stdout: Buffer(0) [Uint8Array] [],
stderr: Buffer(35) [Uint8Array] [
47, 98, 105, 110, 47, 115, 104, 58,
32, 46, 47, 100, 97, 114, 107, 110,
101, 116, 58, 32, 105, 115, 32, 97,
32, 100, 105, 114, 101, 99, 116, 111,
114, 121, 10
]
}

Node.js v20.1.0

from captchasolver.

AlanTuring42 avatar AlanTuring42 commented on August 26, 2024

ok I resolves the following error

from captchasolver.

AlanTuring42 avatar AlanTuring42 commented on August 26, 2024

Now the log file is and it's working:
{
"host": "keep2share.cc",
"text": "vhgO7E",
"confidence": 95
}

from captchasolver.

AlanTuring42 avatar AlanTuring42 commented on August 26, 2024

lol really what a hell of a ride it was. Perhaps I'll create a follow to guide text some hour later with some thought, like go back and see what I did right and wrong, i.e. a fresh start of everything as a new user perspective. And thanks mate :)

from captchasolver.

AlanTuring42 avatar AlanTuring42 commented on August 26, 2024

Ok let me address some things from #7 for future reader.

There is some stuff @sevigny245 got wrong,

  1. Like put the darknet folder into darknet64. (#19 (comment))
  2. Plus Installing darknet main repo i.e. https://pjreddie.com/darknet/install/ and compiling it didn't work for me altho I tried with opencv off only (didn't tried with opencv on cause I think maybe there's some file missing or smthn that we'll need for CaptchaSolver so I didn't go for extra hassle to turning it on). But https://github.com/AlexeyAB/darknet forked repo worked I tried it with opencv on (haven't tried with opencv off cause turning opencv on was easier on this).
  3. Plus there is node_modules missing in his folder too.

Note: if you are new like I was, you should know that darknet uses opencv for variety of image support and online image support that's it (you can learn more about here: https://pjreddie.com/darknet/install/). There is also CUDA thing if you want GPU computation. But in mac we can't run Nvidia's CUDA (as nvidia and apple aren't friends lol), so we don't have to worry bout that and we'll run it via CPU.

from captchasolver.

cracker0dks avatar cracker0dks commented on August 26, 2024

Thanks for your input, I think I will add this into the readme 👍

from captchasolver.

AlanTuring42 avatar AlanTuring42 commented on August 26, 2024

And here's my final follow to guide. I'll choose homebrew as it is the most popular package manager.

1. brew install node && brew install cmake && brew install opencv
3. git clone https://github.com/AlexeyAB/darknet
4. cd darknet
5. mkdir build_release
6. cd build_release
7. cmake .. -DENABLE_CUDA=OFF -DOpenCV_DIR=/usr/local/Cellar/opencv/cmake
8. cmake --build . --target install --parallel 8
9. ..
10. vi makefile
  1. Then edit OPENCV=0 to 1
  • You can use nano (as it is very simple) to edit the text file if you are not used to with vi. For that just do: nano makefile
  • edit OPENCV=0 to 1
  • press control x
  • then y
  • then enter

Troubleshoot to see if darknet is working with opencv correctly: cd ~/darknet && ./darknet imtest data/eagle.jpg

12. git clone https://github.com/cracker0dks/CaptchaSolver.git
13. cd ~/CaptchaSolver/JDownloader\ 2.0/tools/offlineCaptchaSolver
14. npm install

Now while you still in this directory in the terminal do this to ensure this files executable: chmod +x filejoker.sh keep2share.cc.sh checkdeps.sh
Check node & npm location by which node & which npm(Isn't necessary cause it should be in the same location for everyone who installed it via brew)
And we'll use this path in the filejoker.sh, keep2share.cc.sh, checkdeps.sh
vi keep2share.cc.sh
(again I'm using vi but obvs u can use nano)
edit node to /usr/local/bin/node
vi filejoker.sh
edit node to /usr/local/bin/node
vi checkdeps.sh
edit npm to /usr/local/bin/npm

  1. cp -rf ~/darknet/. ~/CaptchaSolver/JDownloader\ 2.0/tools/offlineCaptchaSolver/darknet64
    (Copy and merge darknet content to CaptchaSolver)
  2. cp -rf ~/CaptchaSolver/JDownloader\ 2.0/. /Applications/JDownloader\ 2.0
    (Copy and merge CaptchaSolver content to JDownloader 2 app folder)
  3. cd && rm -rf /Users/utsho/CaptchaSolver /Users/utsho/darknet
    (Remove the darknet & CaptchaSolver directory from your user home directory and save some space, as it'll no longer needed by CaptchaSolver from here)

Finally you can open JDownloader app and try to download, do nothing and wait and if it didn't work in a minute or 2 then stop or disable the specific downloads and start it again. If it still didn't work just see the log file in /Applications/JDownloader\ 2.0/tools/offlineCaptchaSolver/log.txt and ask the community I guess.

from captchasolver.

AlanTuring42 avatar AlanTuring42 commented on August 26, 2024

@cracker0dks 👆

from captchasolver.

AlanTuring42 avatar AlanTuring42 commented on August 26, 2024

Of course mate and for creating this! Least I can do, this'll save me hassle/wasting time solving captcha as I usually downloads chunk files (100mb+-). Plus it's really cool what u are doing :)

One more thing, is browser based reCAPTCHA e.g. depositfiles fully functional? cause for me it worked once when the browser didn't ask for reCAPTCHA, but it didn't try to solve it when it did. altho I use this open source project, but I have to manually interact with it, uses like google speech to text to solve audio. Also rapidgator on the plan?

from captchasolver.

cracker0dks avatar cracker0dks commented on August 26, 2024

solving reCaptcha is not part of this repo, but depositfiles should have the same captcha as the others (only filejoker.net is different). Or did they change something?

rapidgator is discussed here (And why we can not support it for now): #17 (comment)

from captchasolver.

AlanTuring42 avatar AlanTuring42 commented on August 26, 2024

Yeah depositfiles giving me reCaptcha on the browser

from captchasolver.

cracker0dks avatar cracker0dks commented on August 26, 2024

ok, than they changed that :(
I'll update the readme, thanks

from captchasolver.

AlanTuring42 avatar AlanTuring42 commented on August 26, 2024

hey I think I found a minor issue with filejoker. It's like hit or miss scenario. Sometimes in log file it shows "text": "", null and it get stuck there forever or don't try again.
Here are 2 log when it get stuck along with when it works:
Screenshot 2023-06-03 at 3 33 46 PM
Also sometimes it also throws this error:

Running -> filejoker.net
filejoker.net
0 4 Corners 2954
1 Circle 4116
2 Circle 4230
3 4 Corners 2861
4 Circle 4205
5 3 Corners 2359
6 6 Corners 3479
7 5 Corners 3088
8 Circle 4319
node:internal/errors:490
    ErrorCaptureStackTrace(err);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (3)
    at Object.writeFile (node:fs:2276:5)
    at /Applications/JDownloader 2.0/tools/offlineCaptchaSolver/ocr.js:34:12
    at /Applications/JDownloader 2.0/tools/offlineCaptchaSolver/ocr.js:215:9 {
  code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v20.2.0

from captchasolver.

cracker0dks avatar cracker0dks commented on August 26, 2024

I cant find an obvious error. I added some debug logs, can you replace the ocr.js with the current one and send the error output my way? Thank :)

from captchasolver.

AlanTuring42 avatar AlanTuring42 commented on August 26, 2024

Sorry for the late reply, I've tried to reproduce the node:internal/errors:490 ErrorCaptureStackTrace(err); but after changing the ocr.js I couldn't reproduce the error plus very surprisingly I never got that stuck scenario anymore and somehow it's working, I dunno what was the issue!

from captchasolver.

cracker0dks avatar cracker0dks commented on August 26, 2024

mmm I only added .toString() to the result and some logs, maybe that fixed it already. Thanks for your find :)

from captchasolver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.