SShortSingh.
Back to feed

Apify actor adds CPU-based OCR for scanned PDFs and images, with Arabic text order handled

0
·2 views

A developer has published an Apify actor, cyrus_1, that extracts text from public links to images and PDFs using RapidOCR with PaddleOCR models on CPU. The tool skips OCR on PDF pages that already contain a text layer of at least 40 letters or digits, which lowers the cost per page. Each output row includes the joined text, and OCR rows also list every line with its confidence score and bounding box. A language setting covers Arabic script, and the actor returns text in logical reading order, with right-to-left line handling. The post is a tutorial written by the author, who describes the actor as built with an AI-assisted workflow.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Shifting From Scheduled Polling to Event-Driven Business Automation

Many businesses still depend on scheduled polling, where jobs repeatedly check databases, APIs, or storage for changes. This approach causes delays between an event and its response, wastes compute and API quota on empty results, and strains databases as data volume grows. An event-driven model instead lets systems wait passively and act the moment something happens, such as a failed payment or a newly uploaded file. The pattern consists of an event source, an event broker like Redis, Kafka, or RabbitMQ, a processor that applies business logic, and an action layer that carries out the downstream task. The article illustrates this with a FastAPI webhook producer that queues failed-payment events in Redis and a worker that blocks on the queue until events arrive.

0
ProgrammingDEV Community ·

Europa Hack The Box Machine Fully Compromised via SQLi, LFI and Privilege Escalation

A penetration testing report documents a full compromise of the Europa machine on Hack The Box, assessed against PTES and NIST SP 800-115 methodologies. The initial foothold was gained by chaining SQL injection and local file inclusion into remote code execution through log poisoning. Privilege escalation to root was achieved by exploiting SUID binaries and cron jobs in the /opt directory. The engagement was rated critical because an unauthenticated remote attacker could fully take over the host.

0
ProgrammingDEV Community ·

Designing Apps for Everyone: Why Accessibility Improves Usability Overall

Small business owners often plan an app's features before considering who will use it, which can leave gaps once real people try it. Accessibility, which covers making an app usable for people with disabilities, is presented as sound design rather than an optional extra, since changes that help some users typically benefit everyone. The article recommends using legible text with strong contrast, not relying on colour alone to convey meaning, and making buttons large and well spaced for accurate tapping. It also advises adding clear labels for screen reader users, keeping forms short, and explaining errors in plain language beside the relevant field.

0
ProgrammingDEV Community ·

Doctor HTB Machine Pentest Report Details Remote Code Execution and Full Compromise

A penetration testing report on the Hack The Box machine "Doctor" describes a Linux host rated easy but assessed as critical risk. The assessment, conducted under PTES and NIST SP 800-115 methodologies, found an unauthenticated remote exploit that gave initial access through a public-facing network service. Testers confirmed remote command execution under a web user context, then escalated privileges locally to obtain root access. The engagement resulted in full host compromise, with user and root proof flags retrieved and verified. The report was prepared by penetration tester Pedro Araiz and lists no associated CVEs.