Please bookmark this page to avoid losing your image tool!

Movie Review Screenshot Scanner And Identifier

(Free & Supports Bulk Upload)

Drag & drop your images here or

The result will appear here...
You can edit the below JavaScript code to customize the image tool.
function processImage(originalImg, language = 'eng+rus', overlayColor = '#00ff00') {
    // Construct the main container UI
    const container = document.createElement('div');
    container.style.cssText = `
        font-family: 'Courier New', Courier, monospace;
        background: #050505;
        color: ${overlayColor};
        border: 2px solid ${overlayColor};
        border-radius: 8px;
        padding: 15px;
        width: 100%;
        max-width: 800px;
        box-sizing: border-box;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
        margin: 0 auto;
    `;

    // Title Header
    const title = document.createElement('div');
    title.innerText = "> MOVIE_REVIEW_SCREENSHOT_SCANNER.exe v1.0";
    title.style.cssText = `
        font-weight: bold;
        margin-bottom: 15px;
        border-bottom: 1px solid ${overlayColor};
        padding-bottom: 5px;
        text-shadow: 0 0 5px ${overlayColor};
    `;
    container.appendChild(title);

    // Image Viewport
    const viewport = document.createElement('div');
    viewport.style.cssText = `
        position: relative;
        overflow: hidden;
        border: 1px solid ${overlayColor};
        background: #000;
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
    `;
    container.appendChild(viewport);

    // Canvas to draw the image for OCR
    const canvas = document.createElement('canvas');
    const MAX_W = 760;
    let cW = originalImg.width;
    let cH = originalImg.height;
    
    // Scale down if necessary for faster scanning
    if (cW > MAX_W) {
         cH = (cH * MAX_W) / cW;
         cW = MAX_W;
    }
    canvas.width = cW;
    canvas.height = cH;
    canvas.style.display = 'block';
    canvas.style.maxWidth = '100%';
    canvas.style.height = 'auto';
    canvas.style.opacity = '0.8';
    
    // Draw the image
    const ctx = canvas.getContext('2d');
    ctx.drawImage(originalImg, 0, 0, cW, cH);
    viewport.appendChild(canvas);

    // Create unique ID for styles to prevent collisions if called multiple times
    const uid = Math.random().toString(36).substring(2, 9);
    
    // Animated Laser Style
    const style = document.createElement('style');
    style.textContent = `
        @keyframes scanMove-${uid} {
            0% { top: -10%; }
            50% { top: 100%; }
            100% { top: -10%; }
        }
        .laser-${uid} {
            position: absolute;
            left: 0;
            width: 100%;
            height: 2px;
            background: ${overlayColor};
            box-shadow: 0 0 10px ${overlayColor}, 0 0 20px ${overlayColor};
            animation: scanMove-${uid} 3s infinite ease-in-out;
            z-index: 10;
        }
        .laser-${uid}::before {
            content: '';
            position: absolute;
            top: 2px;
            left: 0;
            width: 100%;
            height: 60px;
            background: linear-gradient(to bottom, ${overlayColor}66, transparent);
        }
        .laser-${uid}::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 0;
            width: 100%;
            height: 60px;
            background: linear-gradient(to top, ${overlayColor}66, transparent);
        }
    `;
    document.head.appendChild(style);

    const laser = document.createElement('div');
    laser.className = `laser-${uid}`;
    viewport.appendChild(laser);

    // Terminal Log Output
    const log = document.createElement('div');
    log.style.cssText = `
        background: rgba(0, 20, 0, 0.5);
        border: 1px solid ${overlayColor};
        padding: 10px;
        font-size: 13px;
        min-height: 200px;
        max-height: 350px;
        overflow-y: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
        line-height: 1.5;
    `;
    container.appendChild(log);

    // Terminal helper functions
    const printLog = (text) => {
        const line = document.createElement('div');
        line.innerText = text;
        log.appendChild(line);
        log.scrollTop = log.scrollHeight;
    };

    // Blinking cursor
    const cursor = document.createElement('span');
    cursor.innerText = '█';
    cursor.style.animation = 'blink 1s step-end infinite';
    const cursorStyle = document.createElement('style');
    cursorStyle.textContent = `@keyframes blink { 50% { opacity: 0; } }`;
    document.head.appendChild(cursorStyle);
    log.appendChild(cursor);

    const updateLogWithCursor = (text) => {
        log.removeChild(cursor);
        printLog(text);
        log.appendChild(cursor);
    };

    // Initial output
    updateLogWithCursor("> INITIALIZING IMAGE SCAN...");
    updateLogWithCursor(`> SOURCE DIMENSIONS: ${originalImg.width}x${originalImg.height}px`);
    updateLogWithCursor(`> TARGET LANGUAGES: [${language.toUpperCase()}]`);

    // Async operations encapsulation
    (async () => {
        try {
            await new Promise(res => setTimeout(res, 800)); // Artificial scanner prep delay
            updateLogWithCursor("> INITIATING CLOUD OCR MODULE (TESSERACT JS)...");

            // Dynamically load Tesseract.js if not available
            if (!window.Tesseract) {
                updateLogWithCursor("> DOWNLOADING AI DEPENDENCIES...");
                await new Promise((resolve, reject) => {
                    const script = document.createElement('script');
                    script.src = 'https://cdn.jsdelivr.net/npm/tesseract.js@5/dist/tesseract.min.js';
                    script.onload = resolve;
                    script.onerror = reject;
                    document.head.appendChild(script);
                });
            }

            let lastStatus = '';
            
            // Create Worker with progress logging
            const worker = await Tesseract.createWorker(language, 1, {
                logger: m => {
                    if (m.status && m.status !== lastStatus) {
                        updateLogWithCursor(`> ${m.status.toUpperCase()}...`);
                        lastStatus = m.status;
                    }
                }
            });

            updateLogWithCursor("> SYSTEM READY. EXTRACTING TEXT & IDENTIFYING CONTENT...");

            // Pass the image data to Tesseract OCR
            const ret = await worker.recognize(canvas.toDataURL('image/png'));
            await worker.terminate();

            const text = ret.data.text.trim();
            
            // Stop scanning animation
            laser.style.display = 'none';
            canvas.style.opacity = '1'; 

            updateLogWithCursor("\n==================================");
            updateLogWithCursor("       SCAN COMPLETE");
            updateLogWithCursor("==================================\n");

            if (text.length > 0) {
                 updateLogWithCursor("IDENTIFIED TEXT IN SCREENSHOT:\n------------------------------");
                 updateLogWithCursor(text + "\n");

                 // AI Content Analysis for Movie Reviews
                 updateLogWithCursor("--- MOVIE CONTENT ANALYSIS ---");
                 let tL = text.toLowerCase();
                 
                 // Verify if it's movie related
                 let isMovie = tL.match(/director|movie|film|actor|actress|cinema|review|rating|stars|directed by|cast/);
                 if (isMovie) {
                     updateLogWithCursor("Document Type: [CONFIRMED] Movie Review / Metadata / Subtitles");
                 } else {
                     updateLogWithCursor("Document Type: Generic Text. Movie context uncertain.");
                 }

                 // Try to estimate genre
                 let genre = "Unknown";
                 if (tL.match(/kill|die|blood|murder|detective|cop|crime/)) genre = "Thriller/Horror/Crime";
                 else if (tL.match(/laugh|joke|funny|comedy|hilarious/)) genre = "Comedy";
                 else if (tL.match(/love|kiss|romance|heart|wedding/)) genre = "Romance";
                 else if (tL.match(/robot|space|future|alien|planet/)) genre = "Sci-Fi";
                 else if (tL.match(/war|soldier|battle|sword|dragon/)) genre = "Action/Fantasy";
                 
                 updateLogWithCursor(`Estimated Subject/Genre: ${genre}`);

                 // Try to analyze sentiment
                 let sentiment = "Neutral/Inconclusive";
                 if (tL.match(/masterpiece|10\/10|9\/10|brilliant|amazing|fantastic|excellent|must watch/)) {
                     sentiment = "Highly Positive (Critically Acclaimed)";
                 } else if (tL.match(/terrible|boring|1\/10|2\/10|awful|waste of time|worst/)) {
                     sentiment = "Negative (Reviewed Poorly)";
                 } else if (tL.match(/good|not bad|decent|7\/10|enjoyable/)) {
                     sentiment = "Positive";
                 }
                 updateLogWithCursor(`Semantic Review Rating:  ${sentiment}`);

            } else {
                 updateLogWithCursor("NO TEXT DETECTED IN THIS SCREENSHOT.");
                 updateLogWithCursor("UNABLE TO IDENTIFY MOVIE REVIEW.");
            }

            // End transmission log flag
            log.removeChild(cursor);
            printLog("\n> END OF TRANSMISSION.");

        } catch (e) {
            updateLogWithCursor(`\n> CRITICAL ERROR: ${e.message}`);
            laser.style.animationPlayState = 'paused';
            log.removeChild(cursor);
        }
    })();

    return container;
}

Free Image Tool Creator

Can't find the image tool you're looking for?
Create one based on your own needs now!

Description

This tool is designed to scan movie-related screenshots to extract and analyze text content. Using Optical Character Recognition (OCR) technology, it identifies text within an image and attempts to categorize it, such as detecting movie metadata, subtitles, or written reviews. The tool can automatically estimate the movie’s genre and perform a basic sentiment analysis to determine if the review content is positive, negative, or neutral. It is useful for film enthusiasts, researchers, or developers looking to quickly digitize and categorize information from movie posters, review websites, or film credits.

Leave a Reply

Your email address will not be published. Required fields are marked *