Comments (2)
🥂 Thank you for your support.
Active avoidance mechanism
For this issue, let me first make it clear that it is not a bug. I have designed an active avoidance
mechanism in the program.
You can find it in the source code:
hcaptcha-challenger/src/services/hcaptcha_challenger/core.py
Lines 42 to 57 in 3c40a94
I treat challenge labels that do not appear in the label_alias
dictionary as "new label" that I encountered by accident. In this case the program will actively avoid the challenge and ask the upper level driver to refresh the challenge elements. Such decisions can avoid unnecessary hassles.
Therefore, for demonstration purposes, I considered seaplane
as a "new label" and actively kicked it out of the label_alias
dictionary.
Passive avoidance mechanism
On the other hand, I offer a retreat
method for avoiding challenges that some known models cannot handle. Again, for demonstration purposes, there is a default challenge label seaplane
in this list.
You can find it in the source code:
hcaptcha-challenger/src/services/hcaptcha_challenger/core.py
Lines 97 to 102 in 3c40a94
Refresh the hCAPTCHA elements
As you can see from the above, it is essential to actively refresh the challenge elements. However, it is clear that the current project lacks the mechanisms described above.
This project was spun off from a previous project I was working on and there are still some features that have not been migrated.I will add this mechanism where necessary in a future version, but if you want to use hcapcha-challenger
in your own projects I think you know how to do it.
from hcaptcha-challenger.
Thank you so much for your detailed response!
I've re-read the code after your explanation and now I understand how you handle this. For my project I've now added a simple refresh and retry until a valid label is returned.
I look forward to seeing what changes are made in the future :)
from hcaptcha-challenger.
Related Issues (20)
- [Challenge] Please click each image containing a pirate ship HOT 1
- [Challenge] [retrain] please click on the most similar object to the following reference shape
- [Challenge] [retrain] Please click on the object that appears only once
- feat(components): zero-shot object detection
- feat(control): nested CLIP candidates
- Can you give me an example code on using hcaptcha-challenger with selenium
- [Question] The project is failing 90% of the time because of new challenges HOT 15
- [Challenge] Please find and click on the letter K/W in the image below.
- [Challenge] Pleasae click at the star
- [Challenge] Please click each image containing a bumblebee
- Browserless Challenges HOT 1
- Solved
- google colab error
- url 'https://api.hcaptcha.com/getcaptcha/' returning base64 instead json HOT 8
- bug: workflow post-action
- feat(new-order): Integrated with LVM (large visual models) HOT 1
- [Challenge]
- feat(cloudflare-edge-node): FastAPI Python Workers
- feat(schema): Estimate Bottle Orientation with Computer Vision
- Solving captcha on queries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hcaptcha-challenger.