# HuTianQi/SmartOpenCV

:fire: :fire: :fire: SmartOpenCV是一个OpenCV在Android端的增强库，解决了OpenCV Android SDK在图像预览方面存在的诸多问题，且无需修改OpenCV SDK源码，与OpenCV的SDK解耦

Repository: https://github.com/HuTianQi/SmartOpenCV
Canonical: https://ross.abutalabs.com/products/smartopencv
Language: C++
License: Apache-2.0
License Family: permissive
Topics: opencv, ai, android, cv, sdk, surfaceview, camera, canvas, facedetection
Last push: 2020-04-28T12:34:36+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3580, "days_push": 2318, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1957, forks 512 (observed 2026-08-28T04:05:59.094523+00:00)

## What it is
SmartOpenCV is an enhancement library for OpenCV on Android that fixes numerous image preview issues in the official OpenCV Android SDK, such as landscape-only orientation, black borders, and poor frame size selection. It is decoupled from the OpenCV SDK source and works by simply replacing JavaCameraView/JavaCamera2View in XML layouts.

## Use cases
- fix opencv camera preview orientation on android
- remove black borders from opencv camera preview
- make opencv preview fill the whole view
- use opencv facedetection with a better camera view on android
- replace javacameraview with an enhanced camera preview
- run computer vision on android camera frames

## When to choose
- you use OpenCV's JavaCameraView on Android and suffer from preview orientation, black borders, or frame size issues
- you want OpenCV SDK enhancements without modifying OpenCV source code

## When to avoid
- you don't use OpenCV on Android
- you need a cross-platform (iOS/desktop) computer vision preview solution
- you need a very actively maintained project — the latest release dates to 2020

## Facets
- artifact type: library
- maturity: maintenance
- function: computer-vision, image-processing, ui-components
- domain: computer-vision, android-tools, mobile-development
- platform: -
- tags: opencv, camera-preview, java-camera-view, facedetection, surfaceview, android

## Member repositories
- HuTianQi/SmartOpenCV (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:59.094523+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:06:00.359092+00:00, confidence not recorded.
  - readme: https://github.com/HuTianQi/SmartOpenCV (fetched 2026-08-28T04:05:59.094523+00:00, sha 5ce845c01fe8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
