All Projects → vipul-sharma20 → Sharingan

vipul-sharma20 / Sharingan

Licence: other
Tool to extract news articles from newspaper and give the context about the news

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Sharingan

Php Opencv
php wrapper for opencv
Stars: ✭ 194 (-6.73%)
Mutual labels:  opencv
Seam Carving
Seam Carving for Content Aware Image Resizing
Stars: ✭ 202 (-2.88%)
Mutual labels:  opencv
Raspberrypi Facedetection Mtcnn Caffe With Motion
MTCNN with Motion Detection, on Raspberry Pi with Love
Stars: ✭ 204 (-1.92%)
Mutual labels:  opencv
Facerec Python
个人毕业设计 - 基于树莓派、OpenCV及Python语言的人脸识别
Stars: ✭ 195 (-6.25%)
Mutual labels:  opencv
Traffic Signal Violation Detection System
A Computer Vision based Traffic Signal Violation Detection System from video footage using YOLOv3 & Tkinter. (GUI Included)
Stars: ✭ 200 (-3.85%)
Mutual labels:  opencv
Road lane line detection
Find lane lines on the road using Python and OpenCV, applying Canny edge detectors and Hough line transforms
Stars: ✭ 202 (-2.88%)
Mutual labels:  opencv
Node Digital Watermarking
A digital watermark is a kind of marker covertly embedded in a noise-tolerant signal such as an audio, video or image data. It is typically used to identify ownership of the copyright of such signal. "Watermarking" is the process of hiding digital information in a carrier signal; the hidden information should, but does not need to, contain a relation to the carrier signal. Digital watermarks may be used to verify the authenticity or integrity of the carrier signal or to show the identity of its owners. It is prominently used for tracing copyright infringements and for banknote authentication.
Stars: ✭ 193 (-7.21%)
Mutual labels:  opencv
Learnopencv
Learn OpenCV : C++ and Python Examples
Stars: ✭ 15,385 (+7296.63%)
Mutual labels:  opencv
Human Pose Estimation Opencv
Perform Human Pose Estimation in OpenCV Using OpenPose MobileNet
Stars: ✭ 201 (-3.37%)
Mutual labels:  opencv
Opencv Python Tutorial
OpenCV问答群不再维护。有问题,自己去搜索。Google能找到大部分答案。
Stars: ✭ 2,603 (+1151.44%)
Mutual labels:  opencv
Acurustrack
A multi-object tracking component. Works in the conditions where identification and classical object trackers don't (e.g. shaky/unstable camera footage, occlusions, motion blur, covered faces, etc.). Works on any object despite their nature.
Stars: ✭ 196 (-5.77%)
Mutual labels:  opencv
Marvel
Marvel - Face Recognition With Android & OpenCV
Stars: ✭ 199 (-4.33%)
Mutual labels:  opencv
Opencv 2 Cookbook Src
《OpenCV 2 计算机视觉编程手册》 配套代码,支持 OpenCV 3.x / 4.x
Stars: ✭ 202 (-2.88%)
Mutual labels:  opencv
Perfectshow
Android virtual makeup app, apply cosmetics on human face.
Stars: ✭ 194 (-6.73%)
Mutual labels:  opencv
Fga
Auto-battle app for F/GO Android
Stars: ✭ 205 (-1.44%)
Mutual labels:  opencv
Person Detection And Tracking
A tensorflow implementation with SSD model for person detection and Kalman Filtering combined for tracking
Stars: ✭ 193 (-7.21%)
Mutual labels:  opencv
Simple net
A simple deep neural network implemented in C++,based with OpenCV Mat matrix class
Stars: ✭ 202 (-2.88%)
Mutual labels:  opencv
Imageprocessingprojects
Image processing using python and opencv
Stars: ✭ 205 (-1.44%)
Mutual labels:  opencv
Localexpstereo
Continuous 3D Label Stereo Matching using Local Expansion Moves (TPAMI 2018)
Stars: ✭ 205 (-1.44%)
Mutual labels:  opencv
Pine
🌲 Aimbot powered by real-time object detection with neural networks, GPU accelerated with Nvidia. Optimized for use with CS:GO.
Stars: ✭ 202 (-2.88%)
Mutual labels:  opencv

Sharingan

Build Status Docker Automated build

Sharingan is a tool built on Python 3.6 using OpenCV 3.2 to extract news content as text from newspaper’s photo and perform news context extraction.

For more details and explanation, please refer the blog post here: http://vipul.xyz/2017/03/sharingan-newspaper-text-and-context.html

How it works?

News Extraction

Capture Image

Alt

Canny Edge Detection

Alt

Dilation

Alt

Contour Detection

Alt

Contour Approximation and Bound Box

Alt

Manual Mode

Alt

Alt

Context Extraction

The segmentation done above gives the following result after context extraction:

    [‘residential terraces’, ‘busy markets’, ‘Puppies’, ‘inhumane conditions’, ‘popular e-commerce sites’, ‘Sriramapuram’, ‘Russell Market’, ‘issue licences’,
    ‘meeting conditions’, ‘positive impact’, ‘pet owners’, ‘R. Shantha Kumar’, ‘welfare officer’, ‘Animal Welfare Board’, ‘India’]
    [‘Kittie’]
    [‘Compassion Unlimited’]
    [‘public spaces’, ‘Animal’, ‘rights activists’, ‘civic body’, ‘Bengaluru’],
    [‘BENGALURU’, ‘Bruhat Bengaluru Mahanagar Palike’, ‘Dane’, ‘English Mastiff’, ‘Bulldog’, ‘Boxer’, ‘Rottweiler’, ‘Bernard’, ‘Shepherd’, ‘Retriever’,
    ‘draft guidelines’, ‘sterilisation’, ‘pet dogs ’, ‘Owners’]

Installation

Installing OpenCV 3.2 from source Python 3.6

  • wget https://github.com/Itseez/opencv/archive/3.2.0.zip

  • unzip 3.2.0.zip

  • cd opencv-3.2.0

  • mkdir release && cd release

      cmake -DBUILD_TIFF=ON \
          -DBUILD_opencv_java=OFF \
          -DWITH_CUDA=OFF \
          -DENABLE_AVX=ON \
          -DWITH_OPENGL=ON \
          -DWITH_OPENCL=ON \
          -DWITH_IPP=OFF \
          -DWITH_TBB=ON \
          -DWITH_EIGEN=ON \
          -DWITH_V4L=ON \
          -DWITH_VTK=OFF \
          -DBUILD_TESTS=OFF \
          -DBUILD_PERF_TESTS=OFF \
          -DCMAKE_BUILD_TYPE=RELEASE \
          -DBUILD_opencv_python2=OFF \
          -DCMAKE_INSTALL_PREFIX=$(python3.6 -c "import sys; print(sys.prefix)") \
          -DPYTHON3_EXECUTABLE=$(which python3.6) \
          -DPYTHON3_INCLUDE_DIR=$(python3.6 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
          -DPYTHON3_PACKAGES_PATH=$(python3.6 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") ..
    
  • The output of above will be similar to this: output

  • make -j4

  • make install

Setting up Sharingan

  • git clone [email protected]:vipul-sharma20/sharingan.git
  • pip install -r requirements.txt

IMPORTANT: You will require some corpora and trained models for the code to run. You can refer to: http://www.nltk.org/data.html

  • Interactive Method:

      In [1]: import nltk
    
      In [2]: nltk.download()
    

Docker

Try out the code on Jupyter Notebook

  • docker build -t sharingan-docker .
  • docker run -p 8888:8888 -it sharingan-docker

Thanks to

I am no wizard. Big thanks to people who came up with these solutions and posts:

The Name?

See here: Sharingan

LICENSE

This project is licensed under MIT License:

Copyright (c) 2017-2018: Vipul Sharma

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

This project uses following external libraries, which have their own licenses:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].