[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73HKEZJJEB91E29SQF5W16P":3,"skill-same:01M73HKEZJJEB91E29SQF5W16P":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M73HKEZJJEB91E29SQF5W16P","opencv-bioimage-analysis",null,"Computer vision for bio-image preprocessing, feature detection, real-time microscopy. Color conversion, morphology, contour\u002Fblob detection, template matching, optical flow on fluorescence\u002Fbrightfield. 10-100× faster than pure Python via C++. Use scikit-image for scientific morphometry\u002Fregionprops; OpenCV for real-time, video, classical feature extraction.","bg-szy\u002FTOP-SKILLS","bg-szy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106576190?v=4","01M73A4E8KPV67SFXRY8XZGNBX","ShuZhiyong","01M73A4E96MQ294MHM74TZBVQD",6,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fawesome-skills\u002Fopencv-bioimage-analysis\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: \"opencv-bioimage-analysis\"\ndescription: \"Computer vision for bio-image preprocessing, feature detection, real-time microscopy. Color conversion, morphology, contour\u002Fblob detection, template matching, optical flow on fluorescence\u002Fbrightfield. 10-100× faster than pure Python via C++. Use scikit-image for scientific morphometry\u002Fregionprops; OpenCV for real-time, video, classical feature extraction.\"\nlicense: \"Apache-2.0\"\n---\n\n# OpenCV — Bio-image Computer Vision\n\n## Overview\n\nOpenCV (cv2) provides optimized C++-backed image processing routines for preprocessing, segmentation, feature extraction, and video analysis of biological images. In life sciences, OpenCV is used for fluorescence image enhancement (background subtraction, CLAHE), morphological segmentation (watershed, contour detection), brightfield cell detection, and real-time microscopy stream processing. Unlike scikit-image (which emphasizes scientific measurement), OpenCV prioritizes computational speed and video support — making it ideal for preprocessing pipelines and real-time imaging applications.\n\n## When to Use\n\n- Preprocessing fluorescence or brightfield images: background subtraction, CLAHE, Gaussian\u002Fmedian blur\n- Detecting cell contours, blobs, or edges without deep learning (classical methods)\n- Processing video streams from live-cell imaging microscopes in real-time\n- Template matching for finding repeated structures (organelles, crystals, patterns)\n- Applying morphological operations (erosion, dilation, opening, closing) for mask refinement\n- Computing optical flow between video frames for cell tracking\n- Use **scikit-image** instead for scientific morphometry, regionprops, and scientific image I\u002FO (TIFF metadata)\n- Use **Cellpose** or **StarDist** instead for deep-learning cell segmentation on fluorescence images\n\n## Prerequisites\n\n- **Python packages**: `opencv-python`, `numpy`, `matplotlib`\n- **Optional**: `opencv-contrib-python` for extra modules (SIFT, SURF, optical flow)\n\n```bash\n# Install OpenCV\npip install opencv-python\n\n# Install with extra contributed modules (SIFT, SURF, etc.)\npip install opencv-contrib-python\n\n# Verify\npython -c \"import cv2; print(cv2.__version__)\"\n# 4.10.0\n```\n\n## Quick Start\n\n```python\nimport cv2\nimport numpy as np\n\n# Read and display image info\nimg = cv2.imread(\"cells.tif\", cv2.IMREAD_GRAYSCALE)\nprint(f\"Shape: {img.shape}, dtype: {img.dtype}\")\nprint(f\"Min: {img.min()}, Max: {img.max()}\")\n\n# Apply Gaussian blur and threshold\nblurred = cv2.GaussianBlur(img, (5, 5), 0)\n_, binary = cv2.threshold(blurred, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)\nprint(f\"Cells detected (rough): {np.sum(binary > 0)} foreground pixels\")\n```\n\n## Core API\n\n### Module 1: Image I\u002FO and Color Space Conversion\n\nRead, write, and convert images between color spaces.\n\n```python\nimport cv2\nimport numpy as np\n\n# Read image (GRAYSCALE, COLOR, or UNCHANGED for 16-bit)\nimg_gray  = cv2.imread(\"cells.tif\", cv2.IMREAD_GRAYSCALE)   # uint8\nimg_color = cv2.imread(\"rgb.tif\", cv2.IMREAD_COLOR)         # BGR order!\nimg_16bit = cv2.imread(\"16bit.tif\", cv2.IMREAD_UNCHANGED)   # uint16\n\nprint(f\"Grayscale shape: {img_gray.shape}, dtype: {img_gray.dtype}\")\nprint(f\"Color shape:     {img_color.shape}\")\n\n# Color space conversions\nimg_rgb  = cv2.cvtColor(img_color, cv2.COLOR_BGR2RGB)   # BGR → RGB\nimg_hsv  = cv2.cvtColor(img_color, cv2.COLOR_BGR2HSV)   # BGR → HSV\nimg_gray2 = cv2.cvtColor(img_color, cv2.COLOR_BGR2GRAY) # BGR → gray\n\n# Write image\ncv2.imwrite(\"output.png\", img_gray)\ncv2.imwrite(\"output_16bit.tif\", img_16bit)\nprint(\"Images written.\")\n```\n\n### Module 2: Filtering and Enhancement\n\nApply filters and contrast enhancement for image preprocessing.\n\n```python\nimport cv2\nimport numpy as np\n\nimg = cv2.imread(\"cells.tif\", cv2.IMREAD_GRAYSCALE)\n\n# Gaussian blur (noise reduction)\nblurred = cv2.GaussianBlur(img, (7, 7), sigmaX=1.5)\n\n# Median blur (salt-and-pepper noise)\nmedian = cv2.medianBlur(img, 5)\n\n# CLAHE: Contrast Limited Adaptive Histogram Equalization (for microscopy)\nclahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8, 8))\nclahe_img = clahe.apply(img)\n\n# Top-hat filter for bright spots on dark background\nkernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (15, 15))\ntophat = cv2.morphologyEx(img, cv2.MORPH_TOPHAT, kernel)\n\nprint(f\"CLAHE range: [{clahe_img.min()}, {clahe_img.max()}]\")\ncv2.imwrite(\"clahe_enhanced.tif\", clahe_img)\n```\n\n### Module 3: Thresholding and Binary Segmentation\n\nConvert grayscale images to binary masks using various thresholding methods.\n\n```python\nimport cv2\nimport numpy as np\n\nimg = cv2.imread(\"nuclei.tif\", cv2.IMREAD_GRAYSCALE)\n\n# Otsu's thresholding (automatic threshold selection)\nthresh_val, otsu_mask = cv2.threshold(img, 0, 255,\n                                      cv2.THRESH_BINARY + cv2.THRESH_OTSU)\nprint(f\"Otsu threshold: {thresh_val:.0f}\")\n\n# Adaptive thresholding (handles uneven illumination)\nadaptive = cv2.adaptiveThreshold(\n    img, 255,\n    cv2.ADAPTIVE_THRESH_GAUSSIAN_C,\n    cv2.THRESH_BINARY,\n    blockSize=11,     # neighborhood size (odd)\n    C=2,              # constant subtracted from mean\n)\n\n# For 16-bit images: normalize first\nimg_16 = cv2.imread(\"16bit_nuclei.tif\", cv2.IMREAD_UNCHANGED)\nimg_8 = cv2.normalize(img_16, None, 0, 255, cv2.NORM_MINMAX, dtype=cv2.CV_8U)\n_, mask_16 = cv2.threshold(img_8, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)\n\nprint(f\"Otsu mask foreground: {mask_16.sum() \u002F 255} pixels\")\n```\n\n### Module 4: Contour Detection and Measurement\n\nFind and measure cell contours from binary masks.\n\n```python\nimport cv2\nimport numpy as np\nimport pandas as pd\n\nimg = cv2.imread(\"cells.tif\", cv2.IMREAD_GRAYSCALE)\nblurred = cv2.GaussianBlur(img, (5, 5), 0)\n_, binary = cv2.threshold(blurred, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)\n\n# Remove small objects with morphological opening\nkernel = np.ones((3, 3), np.uint8)\ncleaned = cv2.morphologyEx(binary, cv2.MORPH_OPEN, kernel, iterations=2)\n\n# Find contours\ncontours, hierarchy = cv2.findContours(cleaned, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)\nprint(f\"Objects detected: {len(contours)}\")\n\n# Measure each contour\nrecords = []\nfor i, cnt in enumerate(contours):\n    area = cv2.contourArea(cnt)\n    if area \u003C 50: continue  # skip tiny objects\n    perimeter = cv2.arcLength(cnt, True)\n    x, y, w, h = cv2.boundingRect(cnt)\n    (cx, cy), radius = cv2.minEnclosingCircle(cnt)\n    records.append({\"cell_id\": i, \"area\": area, \"perimeter\": perimeter,\n                     \"x\": x, \"y\": y, \"w\": w, \"h\": h, \"radius\": radius})\n\ndf = pd.DataFrame(records)\nprint(f\"Cells > 50 px²: {len(df)}\")\nprint(df[[\"area\", \"perimeter\", \"radius\"]].describe())\n```\n\n### Module 5: Morphological Operations for Mask Refinement\n\nRefine segmentation masks with morphological operations.\n\n```python\nimport cv2\nimport numpy as np\n\n# Load binary mask (from thresholding or Cellpose)\nmask = cv2.imread(\"rough_mask.png\", cv2.IMREAD_GRAYSCALE)\n_, mask = cv2.threshold(mask, 127, 255, cv2.THRESH_BINARY)\n\n# Structural elements\nellipse = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (7, 7))\nrect    = cv2.getStructuringElement(cv2.MORPH_RECT, (5, 5))\n\n# Opening: remove small bright noise\nopened = cv2.morphologyEx(mask, cv2.MORPH_OPEN, ellipse, iterations=1)\n\n# Closing: fill small holes inside cells\nclosed = cv2.morphologyEx(opened, cv2.MORPH_CLOSE, ellipse, iterations=2)\n\n# Dilation: expand cell boundaries slightly\ndilated = cv2.dilate(closed, ellipse, iterations=1)\n\n# Distance transform for watershed seed generation\ndist = cv2.distanceTransform(closed, cv2.DIST_L2, 5)\n_, seeds = cv2.threshold(dist, 0.5 * dist.max(), 255, 0)\nseeds = seeds.astype(np.uint8)\nprint(f\"Potential cell centers: {cv2.connectedComponents(seeds)[0] - 1}\")\n```\n\n### Module 6: Video Processing for Live-Cell Imaging\n\nProcess video streams from time-lapse microscopy.\n\n```python\nimport cv2\nimport numpy as np\n\n# Process a time-lapse video file\ncap = cv2.VideoCapture(\"timelapse.avi\")\nfps = cap.get(cv2.CAP_PROP_FPS)\nn_frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))\nprint(f\"Video: {n_frames} frames at {fps} FPS\")\n\n# Background subtraction (remove static background)\nbg_subtractor = cv2.createBackgroundSubtractorMOG2(\n    history=50, varThreshold=25, detectShadows=False\n)\n\nframe_counts = []\nframe_idx = 0\nwhile cap.isOpened():\n    ret, frame = cap.read()\n    if not ret: break\n    \n    gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)\n    fg_mask = bg_subtractor.apply(gray)\n    \n    # Count moving objects in this frame\n    contours, _ = cv2.findContours(fg_mask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)\n    moving = [c for c in contours if cv2.contourArea(c) > 100]\n    frame_counts.append(len(moving))\n    frame_idx += 1\n\ncap.release()\nprint(f\"Processed {frame_idx} frames. Mean moving objects: {np.mean(frame_counts):.1f}\")\n```\n\n## Key Parameters\n\n| Parameter | Module | Default | Effect |\n|-----------|--------|---------|--------|\n| `sigmaX` | `GaussianBlur` | auto from ksize | Gaussian standard deviation; larger = more smoothing |\n| `clipLimit` | `createCLAHE` | `40.0` | Maximum contrast amplification; 2.0–4.0 for microscopy |\n| `tileGridSize` | `createCLAHE` | `(8,8)` | Tile size for local histogram equalization |\n| `blockSize` | `adaptiveThreshold` | required | Neighborhood size for adaptive threshold (must be odd, ≥ 3) |\n| `C` | `adaptiveThreshold` | required | Constant subtracted from mean; positive to subtract |\n| `iterations` | `morphologyEx` | `1` | Number of erosion\u002Fdilation cycles; higher = stronger effect |\n| `history` | `BackgroundSubtractorMOG2` | `500` | Frames to model background; lower = faster adaptation |\n| `varThreshold` | `BackgroundSubtractorMOG2` | `16` | Pixel variance threshold; higher = less sensitive |\n| `minArea` | contour filter | — | Minimum `cv2.contourArea(cnt)` to keep; filter noise |\n| `cv2.IMREAD_UNCHANGED` | `imread` | — | Preserve bit-depth (16-bit, 32-bit); required for scientific images |\n\n## Common Workflows\n\n### Workflow 1: Fluorescence Nucleus Detection Pipeline\n\n```python\nimport cv2\nimport numpy as np\nimport pandas as pd\n\ndef detect_nuclei(image_path: str, min_area: int = 200) -> pd.DataFrame:\n    \"\"\"Detect DAPI-stained nuclei from a fluorescence image.\"\"\"\n    img = cv2.imread(image_path, cv2.IMREAD_UNCHANGED)\n    \n    # Normalize 16-bit to 8-bit\n    if img.dtype == np.uint16:\n        img = cv2.normalize(img, None, 0, 255, cv2.NORM_MINMAX, dtype=cv2.CV_8U)\n    \n    # Preprocess: CLAHE → Gaussian blur\n    clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8, 8))\n    enhanced = clahe.apply(img)\n    blurred = cv2.GaussianBlur(enhanced, (5, 5), 1.5)\n    \n    # Segment: Otsu threshold → morphological opening\n    _, binary = cv2.threshold(blurred, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)\n    kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (5, 5))\n    cleaned = cv2.morphologyEx(binary, cv2.MORPH_OPEN, kernel, iterations=1)\n    \n    # Find and measure contours\n    contours, _ = cv2.findContours(cleaned, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)\n    records = []\n    for cnt in contours:\n        area = cv2.contourArea(cnt)\n        if area \u003C min_area: continue\n        M = cv2.moments(cnt)\n        if M[\"m00\"] == 0: continue\n        cx = int(M[\"m10\"] \u002F M[\"m00\"])\n        cy = int(M[\"m01\"] \u002F M[\"m00\"])\n        records.append({\"area\": area, \"cx\": cx, \"cy\": cy,\n                         \"perimeter\": cv2.arcLength(cnt, True)})\n    \n    return pd.DataFrame(records)\n\ndf = detect_nuclei(\"dapi.tif\", min_area=300)\nprint(f\"Nuclei detected: {len(df)}\")\nprint(df.describe())\n```\n\n### Workflow 2: Batch Process Image Directory\n\n```python\nimport cv2\nimport numpy as np\nimport pandas as pd\nfrom pathlib import Path\n\ndef process_image(path: str) -> dict:\n    img = cv2.imread(path, cv2.IMREAD_GRAYSCALE)\n    if img is None:\n        return {}\n    blurred = cv2.GaussianBlur(img, (5, 5), 0)\n    _, binary = cv2.threshold(blurred, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)\n    contours, _ = cv2.findContours(binary, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)\n    cells = [c for c in contours if cv2.contourArea(c) > 200]\n    return {\"file\": Path(path).name, \"cell_count\": len(cells),\n            \"mean_area\": np.mean([cv2.contourArea(c) for c in cells]) if cells else 0}\n\nresults = [process_image(str(p)) for p in sorted(Path(\"images\").glob(\"*.tif\"))]\ndf = pd.DataFrame([r for r in results if r])\nprint(df)\ndf.to_csv(\"batch_results.csv\", index=False)\nprint(\"Saved: batch_results.csv\")\n```\n\n## Common Recipes\n\n### Recipe 1: Annotate Detected Cells on Image\n\n```python\nimport cv2\nimport numpy as np\n\nimg = cv2.imread(\"cells.tif\", cv2.IMREAD_GRAYSCALE)\nimg_color = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR)\n\nblurred = cv2.GaussianBlur(img, (5, 5), 0)\n_, binary = cv2.threshold(blurred, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)\ncontours, _ = cv2.findContours(binary, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)\n\nfor i, cnt in enumerate(contours):\n    if cv2.contourArea(cnt) \u003C 200: continue\n    # Draw contour outline\n    cv2.drawContours(img_color, [cnt], -1, (0, 255, 0), 2)\n    # Label with cell number\n    M = cv2.moments(cnt)\n    if M[\"m00\"] > 0:\n        cx, cy = int(M[\"m10\"] \u002F M[\"m00\"]), int(M[\"m01\"] \u002F M[\"m00\"])\n        cv2.putText(img_color, str(i), (cx - 5, cy), cv2.FONT_HERSHEY_SIMPLEX,\n                    0.4, (255, 255, 0), 1)\n\ncv2.imwrite(\"annotated_cells.png\", img_color)\nprint(f\"Annotated {len(contours)} cells. Saved: annotated_cells.png\")\n```\n\n### Recipe 2: Background Subtraction with Rolling Ball\n\n```python\nimport cv2\nimport numpy as np\n\ndef rolling_ball_background(img: np.ndarray, radius: int = 50) -> np.ndarray:\n    \"\"\"Estimate and subtract background using a blur approximation.\"\"\"\n    kernel_size = 2 * radius + 1\n    background = cv2.GaussianBlur(img, (kernel_size, kernel_size), radius \u002F 3)\n    corrected = cv2.subtract(img, background)\n    return corrected\n\nimg = cv2.imread(\"uneven_fluorescence.tif\", cv2.IMREAD_GRAYSCALE)\ncorrected = rolling_ball_background(img, radius=50)\ncv2.imwrite(\"background_corrected.tif\", corrected)\nprint(f\"Background corrected. Range: [{corrected.min()}, {corrected.max()}]\")\n```\n\n## Troubleshooting\n\n| Problem | Cause | Solution |\n|---------|-------|----------|\n| `imread` returns `None` | File not found or unsupported format | Use absolute path; verify with `Path(path).exists()`; for TIFF use `cv2.IMREAD_UNCHANGED` |\n| 16-bit image shows as black | `IMREAD_GRAYSCALE` clips to uint8 | Use `cv2.IMREAD_UNCHANGED` and normalize: `cv2.normalize(img, None, 0, 255, cv2.NORM_MINMAX)` |\n| BGR vs RGB color mismatch | OpenCV uses BGR, matplotlib uses RGB | Convert: `rgb = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)` before `plt.imshow()` |\n| Contours split one cell into many | Binary mask has holes or noise | Apply `cv2.MORPH_CLOSE` before contour detection; increase Gaussian blur sigma |\n| `GaussianBlur` requires odd kernel | Even kernel size provided | Always use odd kernel sizes: 3, 5, 7, 9; `ksize=(5,5)` not `(4,4)` |\n| CLAHE makes image worse | clipLimit too high | Reduce `clipLimit` to 1.5–2.0; increase `tileGridSize` to `(16,16)` |\n| Background subtraction removes cells | History too short for MOG2 | Increase `history` parameter; use static frame subtraction for microscopy |\n| Performance slow on large images | Python loop over pixels | Use vectorized NumPy operations or CUDA-accelerated `cv2.cuda` module |\n\n## References\n\n- [OpenCV Python documentation](https:\u002F\u002Fdocs.opencv.org\u002F4.x\u002Fd6\u002Fd00\u002Ftutorial_py_root.html) — full Python API reference and tutorials\n- [OpenCV GitHub: opencv\u002Fopencv](https:\u002F\u002Fgithub.com\u002Fopencv\u002Fopencv) — source code and Python bindings\n- Bradski G (2000) \"The OpenCV Library\" — *Dr. Dobb's Journal of Software Tools* 25(11):120-125\n- [PyImageSearch tutorials](https:\u002F\u002Fpyimagesearch.com\u002F) — applied OpenCV for computer vision in biological imaging\n","# OpenCV — Bio-image Computer Vision\n\n## Overview\n\nOpenCV (cv2) provides optimized C++-backed image processing routines for preprocessing, segmentation, feature extraction, and video analysis of biological images. In life sciences, OpenCV is used for fluorescence image enhancement (background subtraction, CLAHE), morphological segmentation (watershed, contour detection), brightfield cell detection, and real-time microscopy stream processing. Unlike scikit-image (which emphasizes scientific measurement), OpenCV prioritizes computational speed and video support — making it ideal for preprocessing pipelines and real-time imaging applications.\n\n## When to Use\n\n- Preprocessing fluorescence or brightfield images: background subtraction, CLAHE, Gaussian\u002Fmedian blur\n- Detecting cell contours, blobs, or edges without deep learning (classical methods)\n- Processing video streams from live-cell imaging microscopes in real-time\n- Template matching for finding repeated structures (organelles, crystals, patterns)\n- Applying morphological operations (erosion, dilation, opening, closing) for mask refinement\n- Computing optical flow between video frames for cell tracking\n- Use **scikit-image** instead for scientific morphometry, regionprops, and scientific image I\u002FO (TIFF metadata)\n- Use **Cellpose** or **StarDist** instead for deep-learning cell segmentation on fluorescence images\n\n## Prerequisites\n\n- **Python packages**: `opencv-python`, `numpy`, `matplotlib`\n- **Optional**: `opencv-contrib-python` for extra modules (SIFT, SURF, optical flow)\n\n```bash\n# Install OpenCV\npip install opencv-python\n\n# Install with extra contributed modules (SIFT, SURF, etc.)\npip install opencv-contrib-python\n\n# Verify\npython -c \"import cv2; print(cv2.__version__)\"\n# 4.10.0\n```\n\n## Quick Start\n\n```python\nimport cv2\nimport numpy as np\n\n# Read and display image info\nimg = cv2.imread(\"cells.tif\", cv2.IMREAD_GRAYSCALE)\nprint(f\"Shape: {img.shape}, dtype: {img.dtype}\")\nprint(f\"Min: {img.min()}, Max: {img.max()}\")\n\n# Apply Gaussian blur and threshold\nblurred = cv2.GaussianBlur(img, (5, 5), 0)\n_, binary = cv2.threshold(blurred, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)\nprint(f\"Cells detected (rough): {np.sum(binary > 0)} foreground pixels\")\n```\n\n## Core API\n\n### Module 1: Image I\u002FO and Color Space Conversion\n\nRead, write, and convert images between color spaces.\n\n```python\nimport cv2\nimport numpy as np\n\n# Read image (GRAYSCALE, COLOR, or UNCHANGED for 16-bit)\nimg_gray  = cv2.imread(\"cells.tif\", cv2.IMREAD_GRAYSCALE)   # uint8\nimg_color = cv2.imread(\"rgb.tif\", cv2.IMREAD_COLOR)         # BGR order!\nimg_16bit = cv2.imread(\"16bit.tif\", cv2.IMREAD_UNCHANGED)   # uint16\n\nprint(f\"Grayscale shape: {img_gray.shape}, dtype: {img_gray.dtype}\")\nprint(f\"Color shape:     {img_color.shape}\")\n\n# Color space conversions\nimg_rgb  = cv2.cvtColor(img_color, cv2.COLOR_BGR2RGB)   # BGR → RGB\nimg_hsv  = cv2.cvtColor(img_color, cv2.COLOR_BGR2HSV)   # BGR → HSV\nimg_gray2 = cv2.cvtColor(img_color, cv2.COLOR_BGR2GRAY) # BGR → gray\n\n# Write image\ncv2.imwrite(\"output.png\", img_gray)\ncv2.imwrite(\"output_16bit.tif\", img_16bit)\nprint(\"Images written.\")\n```\n\n### Module 2: Filtering and Enhancement\n\nApply filters and contrast enhancement for image preprocessing.\n\n```python\nimport cv2\nimport numpy as np\n\nimg = cv2.imread(\"cells.tif\", cv2.IMREAD_GRAYSCALE)\n\n# Gaussian blur (noise reduction)\nblurred = cv2.GaussianBlur(img, (7, 7), sigmaX=1.5)\n\n# Median blur (salt-and-pepper noise)\nmedian = cv2.medianBlur(img, 5)\n\n# CLAHE: Contrast Limited Adaptive Histogram Equalization (for microscopy)\nclahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8, 8))\nclahe_img = clahe.apply(img)\n\n# Top-hat filter for bright spots on dark background\nkernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (15, 15))\ntophat = cv2.morphologyEx(img, cv2.MORPH_TOPHAT, kernel)\n\nprint(f\"CLAHE range: [{clahe_img.min()}, {clahe_img.max()}]\")\ncv2.imwrite(\"clahe_enhanced.tif\", clahe_img)\n```\n\n### Module 3: Thresholding and Binary Segmentation\n\nConvert grayscale images to binary masks using various thresholding methods.\n\n```python\nimport cv2\nimport numpy as np\n\nimg = cv2.imread(\"nuclei.tif\", cv2.IMREAD_GRAYSCALE)\n\n# Otsu's thresholding (automatic threshold selection)\nthresh_val, otsu_mask = cv2.threshold(img, 0, 255,\n                                      cv2.THRESH_BINARY + cv2.THRESH_OTSU)\nprint(f\"Otsu threshold: {thresh_val:.0f}\")\n\n# Adaptive thresholding (handles uneven illumination)\nadaptive = cv2.adaptiveThreshold(\n    img, 255,\n    cv2.ADAPTIVE_THRESH_GAUSSIAN_C,\n    cv2.THRESH_BINARY,\n    blockSize=11,     # neighborhood size (odd)\n    C=2,              # constant subtracted from mean\n)\n\n# For 16-bit images: normalize first\nimg_16 = cv2.imread(\"16bit_nuclei.tif\", cv2.IMREAD_UNCHANGED)\nimg_8 = cv2.normalize(img_16, None, 0, 255, cv2.NORM_MINMAX, dtype=cv2.CV_8U)\n_, mask_16 = cv2.threshold(img_8, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)\n\nprint(f\"Otsu mask foreground: {mask_16.sum() \u002F 255} pixels\")\n```\n\n### Module 4: Contour Detection and Measurement\n\nFind and measure cell contours from binary masks.\n\n```python\nimport cv2\nimport numpy as np\nimport pandas as pd\n\nimg = cv2.imread(\"cells.tif\", cv2.IMREAD_GRAYSCALE)\nblurred = cv2.GaussianBlur(img, (5, 5), 0)\n_, binary = cv2.threshold(blurred, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)\n\n# Remove small objects with morphological opening\nkernel = np.ones((3, 3), np.uint8)\ncleaned = cv2.morphologyEx(binary, cv2.MORPH_OPEN, kernel, iterations=2)\n\n# Find contours\ncontours, hierarchy = cv2.findContours(cleaned, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)\nprint(f\"Objects detected: {len(contours)}\")\n\n# Measure each contour\nrecords = []\nfor i, cnt in enumerate(contours):\n    area = cv2.contourArea(cnt)\n    if area \u003C 50: continue  # skip tiny objects\n    perimeter = cv2.arcLength(cnt, True)\n    x, y, w, h = cv2.boundingRect(cnt)\n    (cx, cy), radius = cv2.minEnclosingCircle(cnt)\n    records.append({\"cell_id\": i, \"area\": area, \"perimeter\": perimeter,\n                     \"x\": x, \"y\": y, \"w\": w, \"h\": h, \"radius\": radius})\n\ndf = pd.DataFrame(records)\nprint(f\"Cells > 50 px²: {len(df)}\")\nprint(df[[\"area\", \"perimeter\", \"radius\"]].describe())\n```\n\n### Module 5: Morphological Operations for Mask Refinement\n\nRefine segmentation masks with morphological operations.\n\n```python\nimport cv2\nimport numpy as np\n\n# Load binary mask (from thresholding or Cellpose)\nmask = cv2.imread(\"rough_mask.png\", cv2.IMREAD_GRAYSCALE)\n_, mask = cv2.threshold(mask, 127, 255, cv2.THRESH_BINARY)\n\n# Structural elements\nellipse = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (7, 7))\nrect    = cv2.getStructuringElement(cv2.MORPH_RECT, (5, 5))\n\n# Opening: remove small bright noise\nopened = cv2.morphologyEx(mask, cv2.MORPH_OPEN, ellipse, iterations=1)\n\n# Closing: fill small holes inside cells\nclosed = cv2.morphologyEx(opened, cv2.MORPH_CLOSE, ellipse, iterations=2)\n\n# Dilation: expand cell boundaries slightly\ndilated = cv2.dilate(closed, ellipse, iterations=1)\n\n# Distance transform for watershed seed generation\ndist = cv2.distanceTransform(closed, cv2.DIST_L2, 5)\n_, seeds = cv2.threshold(dist, 0.5 * dist.max(), 255, 0)\nseeds = seeds.astype(np.uint8)\nprint(f\"Potential cell centers: {cv2.connectedComponents(seeds)[0] - 1}\")\n```\n\n### Module 6: Video Processing for Live-Cell Imaging\n\nProcess video streams from time-lapse microscopy.\n\n```python\nimport cv2\nimport numpy as np\n\n# Process a time-lapse video file\ncap = cv2.VideoCapture(\"timelapse.avi\")\nfps = cap.get(cv2.CAP_PROP_FPS)\nn_frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))\nprint(f\"Video: {n_frames} frames at {fps} FPS\")\n\n# Background subtraction (remove static background)\nbg_subtractor = cv2.createBackgroundSubtractorMOG2(\n    history=50, varThreshold=25, detectShadows=False\n)\n\nframe_counts = []\nframe_idx = 0\nwhile cap.isOpened():\n    ret, frame = cap.read()\n    if not ret: break\n    \n    gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)\n    fg_mask = bg_subtractor.apply(gray)\n    \n    # Count moving objects in this frame\n    contours, _ = cv2.findContours(fg_mask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)\n    moving = [c for c in contours if cv2.contourArea(c) > 100]\n    frame_counts.append(len(moving))\n    frame_idx += 1\n\ncap.release()\nprint(f\"Processed {frame_idx} frames. Mean moving objects: {np.mean(frame_counts):.1f}\")\n```\n\n## Key Parameters\n\n| Parameter | Module | Default | Effect |\n|-----------|--------|---------|--------|\n| `sigmaX` | `GaussianBlur` | auto from ksize | Gaussian standard deviation; larger = more smoothing |\n| `clipLimit` | `createCLAHE` | `40.0` | Maximum contrast amplification; 2.0–4.0 for microscopy |\n| `tileGridSize` | `createCLAHE` | `(8,8)` | Tile size for local histogram equalization |\n| `blockSize` | `adaptiveThreshold` | required | Neighborhood size for adaptive threshold (must be odd, ≥ 3) |\n| `C` | `adaptiveThreshold` | required | Constant subtracted from mean; positive to subtract |\n| `iterations` | `morphologyEx` | `1` | Number of erosion\u002Fdilation cycles; higher = stronger effect |\n| `history` | `BackgroundSubtractorMOG2` | `500` | Frames to model background; lower = faster adaptation |\n| `varThreshold` | `BackgroundSubtractorMOG2` | `16` | Pixel variance threshold; higher = less sensitive |\n| `minArea` | contour filter | — | Minimum `cv2.contourArea(cnt)` to keep; filter noise |\n| `cv2.IMREAD_UNCHANGED` | `imread` | — | Preserve bit-depth (16-bit, 32-bit); required for scientific images |\n\n## Common Workflows\n\n### Workflow 1: Fluorescence Nucleus Detection Pipeline\n\n```python\nimport cv2\nimport numpy as np\nimport pandas as pd\n\ndef detect_nuclei(image_path: str, min_area: int = 200) -> pd.DataFrame:\n    \"\"\"Detect DAPI-stained nuclei from a fluorescence image.\"\"\"\n    img = cv2.imread(image_path, cv2.IMREAD_UNCHANGED)\n    \n    # Normalize 16-bit to 8-bit\n    if img.dtype == np.uint16:\n        img = cv2.normalize(img, None, 0, 255, cv2.NORM_MINMAX, dtype=cv2.CV_8U)\n    \n    # Preprocess: CLAHE → Gaussian blur\n    clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8, 8))\n    enhanced = clahe.apply(img)\n    blurred = cv2.GaussianBlur(enhanced, (5, 5), 1.5)\n    \n    # Segment: Otsu threshold → morphological opening\n    _, binary = cv2.threshold(blurred, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)\n    kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (5, 5))\n    cleaned = cv2.morphologyEx(binary, cv2.MORPH_OPEN, kernel, iterations=1)\n    \n    # Find and measure contours\n    contours, _ = cv2.findContours(cleaned, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)\n    records = []\n    for cnt in contours:\n        area = cv2.contourArea(cnt)\n        if area \u003C min_area: continue\n        M = cv2.moments(cnt)\n        if M[\"m00\"] == 0: continue\n        cx = int(M[\"m10\"] \u002F M[\"m00\"])\n        cy = int(M[\"m01\"] \u002F M[\"m00\"])\n        records.append({\"area\": area, \"cx\": cx, \"cy\": cy,\n                         \"perimeter\": cv2.arcLength(cnt, True)})\n    \n    return pd.DataFrame(records)\n\ndf = detect_nuclei(\"dapi.tif\", min_area=300)\nprint(f\"Nuclei detected: {len(df)}\")\nprint(df.describe())\n```\n\n### Workflow 2: Batch Process Image Directory\n\n```python\nimport cv2\nimport numpy as np\nimport pandas as pd\nfrom pathlib import Path\n\ndef process_image(path: str) -> dict:\n    img = cv2.imread(path, cv2.IMREAD_GRAYSCALE)\n    if img is None:\n        return {}\n    blurred = cv2.GaussianBlur(img, (5, 5), 0)\n    _, binary = cv2.threshold(blurred, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)\n    contours, _ = cv2.findContours(binary, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)\n    cells = [c for c in contours if cv2.contourArea(c) > 200]\n    return {\"file\": Path(path).name, \"cell_count\": len(cells),\n            \"mean_area\": np.mean([cv2.contourArea(c) for c in cells]) if cells else 0}\n\nresults = [process_image(str(p)) for p in sorted(Path(\"images\").glob(\"*.tif\"))]\ndf = pd.DataFrame([r for r in results if r])\nprint(df)\ndf.to_csv(\"batch_results.csv\", index=False)\nprint(\"Saved: batch_results.csv\")\n```\n\n## Common Recipes\n\n### Recipe 1: Annotate Detected Cells on Image\n\n```python\nimport cv2\nimport numpy as np\n\nimg = cv2.imread(\"cells.tif\", cv2.IMREAD_GRAYSCALE)\nimg_color = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR)\n\nblurred = cv2.GaussianBlur(img, (5, 5), 0)\n_, binary = cv2.threshold(blurred, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU)\ncontours, _ = cv2.findContours(binary, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)\n\nfor i, cnt in enumerate(contours):\n    if cv2.contourArea(cnt) \u003C 200: continue\n    # Draw contour outline\n    cv2.drawContours(img_color, [cnt], -1, (0, 255, 0), 2)\n    # Label with cell number\n    M = cv2.moments(cnt)\n    if M[\"m00\"] > 0:\n        cx, cy = int(M[\"m10\"] \u002F M[\"m00\"]), int(M[\"m01\"] \u002F M[\"m00\"])\n        cv2.putText(img_color, str(i), (cx - 5, cy), cv2.FONT_HERSHEY_SIMPLEX,\n                    0.4, (255, 255, 0), 1)\n\ncv2.imwrite(\"annotated_cells.png\", img_color)\nprint(f\"Annotated {len(contours)} cells. Saved: annotated_cells.png\")\n```\n\n### Recipe 2: Background Subtraction with Rolling Ball\n\n```python\nimport cv2\nimport numpy as np\n\ndef rolling_ball_background(img: np.ndarray, radius: int = 50) -> np.ndarray:\n    \"\"\"Estimate and subtract background using a blur approximation.\"\"\"\n    kernel_size = 2 * radius + 1\n    background = cv2.GaussianBlur(img, (kernel_size, kernel_size), radius \u002F 3)\n    corrected = cv2.subtract(img, background)\n    return corrected\n\nimg = cv2.imread(\"uneven_fluorescence.tif\", cv2.IMREAD_GRAYSCALE)\ncorrected = rolling_ball_background(img, radius=50)\ncv2.imwrite(\"background_corrected.tif\", corrected)\nprint(f\"Background corrected. Range: [{corrected.min()}, {corrected.max()}]\")\n```\n\n## Troubleshooting\n\n| Problem | Cause | Solution |\n|---------|-------|----------|\n| `imread` returns `None` | File not found or unsupported format | Use absolute path; verify with `Path(path).exists()`; for TIFF use `cv2.IMREAD_UNCHANGED` |\n| 16-bit image shows as black | `IMREAD_GRAYSCALE` clips to uint8 | Use `cv2.IMREAD_UNCHANGED` and normalize: `cv2.normalize(img, None, 0, 255, cv2.NORM_MINMAX)` |\n| BGR vs RGB color mismatch | OpenCV uses BGR, matplotlib uses RGB | Convert: `rgb = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)` before `plt.imshow()` |\n| Contours split one cell into many | Binary mask has holes or noise | Apply `cv2.MORPH_CLOSE` before contour detection; increase Gaussian blur sigma |\n| `GaussianBlur` requires odd kernel | Even kernel size provided | Always use odd kernel sizes: 3, 5, 7, 9; `ksize=(5,5)` not `(4,4)` |\n| CLAHE makes image worse | clipLimit too high | Reduce `clipLimit` to 1.5–2.0; increase `tileGridSize` to `(16,16)` |\n| Background subtraction removes cells | History too short for MOG2 | Increase `history` parameter; use static frame subtraction for microscopy |\n| Performance slow on large images | Python loop over pixels | Use vectorized NumPy operations or CUDA-accelerated `cv2.cuda` module |\n\n## References\n\n- [OpenCV Python documentation](https:\u002F\u002Fdocs.opencv.org\u002F4.x\u002Fd6\u002Fd00\u002Ftutorial_py_root.html) — full Python API reference and tutorials\n- [OpenCV GitHub: opencv\u002Fopencv](https:\u002F\u002Fgithub.com\u002Fopencv\u002Fopencv) — source code and Python bindings\n- Bradski G (2000) \"The OpenCV Library\" — *Dr. Dobb's Journal of Software Tools* 25(11):120-125\n- [PyImageSearch tutorials](https:\u002F\u002Fpyimagesearch.com\u002F) — applied OpenCV for computer vision in biological imaging\n",{"name":5,"license":15,"description":7},"master","63f17866001c5ca854bf2fa0b678ce277133de5b","skills\u002Fawesome-skills\u002Fopencv-bioimage-analysis",0,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS","https:\u002F\u002Fbg-szy.github.io\u002FTOP-SKILLS\u002F","https:\u002F\u002Fgithub.com\u002Fbg-szy","https:\u002F\u002Fwww.ecust.edu.cn\u002F","a student of East China University of Science and Technology","2026-11-15 03:38:02",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add bg-szy\u002FTOP-SKILLS --skill opencv-bioimage-analysis",{"tool":40,"command":41},"bunx","bunx skills add bg-szy\u002FTOP-SKILLS --skill opencv-bioimage-analysis",{"tool":43,"command":44},"pnpm","pnpm dlx skills add bg-szy\u002FTOP-SKILLS --skill opencv-bioimage-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fawesome-skills\u002Fopencv-bioimage-analysis\u002FSKILL.md",true,[],[49,58,65,72,79,86],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":57},"01M7DXW9N826PKXK174PVW3038","serpmaven","Scrape Google search results (SERP) to JSON with SERP Maven (serpmaven) - a real Chrome browser on a residential proxy with sticky sessions. Run it as a CLI, a Python library, a local HTTP search API (`serve`), an MCP server or a Docker image; set the proxy login, workers, pages and cost tracking. Use when the user wants Google results, rank tracking, a self-hosted SERP API, or live Google search for an AI agent.","MIT","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fserpmaven\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":57},"01M7DXVHSTWDV65475QEQ915M7","revnu-landing-page-audit","Find out why a landing page isn't turning visitors into signups, demos or sales. Audits one page against what the ad, post or search that sends people there promised, then checks the first screen, proof, call to action, friction and mobile. Returns at most 7 prioritized fixes, plus what is fine and what could not be checked; rewrites specific lines and fixes the page in the repo when asked. Never promises a conversion lift. Works without a Revnu account. Use when the user says or asks: \"audit my landing page\", \"why isn't this page converting\", \"review my homepage\", \"my ads get clicks but no signups\", \"people bounce from the pricing page\", \"CRO review\", \"improve conversion rate\", \"is my hero section clear\", \"roast my landing page\", \"rewrite my headline\", \"what's wrong with this page\", \"landing page feedback\", \"make the signup page convert better\". Not for SEO or AI-search audits, page speed engineering on its own, or building a new page from scratch.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-landing-page-audit\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":57},"01M7DXV8X2D7B3VTD4HHYYHTGR","revnu-growth-context","Write down once who buys, what they're stuck on, what it costs, what proof you have and what you've already tried, so every growth task starts from facts instead of a questionnaire. Creates or updates .agents\u002Frevnu-growth.md from the repo, the live site and the user, and imports an existing product-marketing.md. Use when the user says \"set up our marketing context\", \"who is our ideal customer\", \"write our ICP\", \"describe the product for marketing\", \"positioning doc\", \"what's our brand voice\", \"remember this about our customers\", \"log what we tried\", \"what have we learned from marketing\", \"we changed pricing, update the context\", \"update our growth notes\", \"summarize the business for the agent\", \"import my product-marketing.md\", \"start a growth doc\", or before a first marketing, SEO, outreach or launch task when no context file exists. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-growth-context\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":57},"01M7DXV0DGJ1G0A60PAHC6J3C5","revnu-get-listed","Get onto the third-party pages AI answers and search cite when buyers ask for the best tool in your category: \"best X\" roundups, directories, review sites, GitHub awesome lists, community threads and comparison pages. Finds which ones are cited, ranks them by fit and effort, and drafts each submission, PR or pitch by the target's own rules. Use when the user says \"get us listed\", \"which directories should we submit to\", \"how do we get into best-of lists\", \"why does ChatGPT recommend competitors and not us\", \"get mentioned in AI answers\", \"submit to awesome lists\", \"get on G2\", \"where are our competitors listed\", \"pitch listicle authors\", \"find backlink opportunities\", \"launch directories\", \"get into roundups\", \"Product Hunt alternatives\", \"where should we be listed\", \"get cited by Perplexity\". Never submits, pays or posts without a yes. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-get-listed\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":57},"01M7DXTSPMGT9D6DSS0HP9BSTA","revnu-ai-readiness-audit","Audit whether your website gives ChatGPT, Perplexity, Claude, Gemini and Google's AI Overviews something worth quoting, and fix the pages that don't. Use when the user says or asks \"is my site ready for AI search\", \"audit my site for AI answers\", \"AEO audit\", \"GEO audit\", \"why doesn't ChatGPT quote our pricing\", \"make our pages citable by AI\", \"do I need llms.txt\", \"does schema help with ChatGPT\", \"check our structured data\", \"is our content visible without JavaScript\", \"AI SEO audit\", \"optimize our homepage for AI answers\", \"LLM SEO check\", \"why does AI get our product wrong\", \"fix our site for AI Overviews\". Checks fetchability and indexability, answers in the raw HTML, entity facts, schema (including JS-injected markup), headings, dates and llms.txt, then gives at most 10 prioritised fixes and edits the repo when asked. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-ai-readiness-audit\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":57},"01M7DXSZHCVTRS620GC3S97JZV","proxy-troubleshooting","Diagnose residential proxy failures, with NodeMaven's gateway as the reference - 407 with correct credentials, 406, 410, 500, a connection that hangs, ERR_TUNNEL_CONNECTION_FAILED in a browser, Playwright or Puppeteer ignoring proxy credentials, a sticky session that changes IP, geo-targeting that is silently ignored, passwords with special characters, and unexpected traffic from headless Chrome. Use when a proxy connection fails, returns the wrong location, or costs more traffic than expected.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fproxy-troubleshooting\u002FSKILL.md",[],[]]