detection

What are techniques for determining running OS in assembly language at runtime?

一个人想着一个人 提交于 2021-01-28 09:18:14
问题 What are techniques for determining running OS in assembly language at runtime? If there are direct ways to determine this, that'd be awesome. I was also thinking of how there are tricks in Javascript to determine what browser you're running in... Are there similar techniques for determining OS or even CPU arch in a low level language like Intel assembly? Thanks, Chenz 回答1: CPU architecture will be next-to-impossible to determine. Machine code differs greatly between CPU architectures, and so

Disable running screen capture software in Java app

柔情痞子 提交于 2021-01-28 07:09:42
问题 I found similar questions here, but not with this approach and problem. I have a program which does some mathematics. At the moment, results are written in .doc file. But, this file can be shared through network. I want to disable it by writing results in label. But, again, screen can be captured. So, I found many ideas for preventing this, but the most interesting to me is that to detect and disable all screen capture software running on the system, and periodically (if it is possible)

Face detection not working using methods from API14

南笙酒味 提交于 2021-01-28 01:48:04
问题 I have a problem with face detection methods from API14. I have not null camera object. I set to it listener using setFaceDetectionListener with very simple implementation of FaceDecectionListener. I next step I call camera.startFaceDetection() but inteface method onFaceDetection(Face[] faces, Camera camera) is never call... What's wrong with this simple method? Maybe there's a problem with camera? I tested this function on SGS3 and SGS4 and I have the same problem. 回答1: OK guys, issue solved

Detecting copied or similar text blocks

时光总嘲笑我的痴心妄想 提交于 2021-01-27 13:43:03
问题 I have a bunch of texts about programming in Markdown format. There is a build process that is capable of converting those texts into Word/HTML and also perform simple validation rules like spell checking or checking if document has required header structure. I would like to extend that build code to also check for copy-pasted or similar chunks within all texts. Is there any existing Java/Groovy library that can help me with that analysis? My first idea was to use PMD's CopyPasteDetector, but

Bad character recognition with Pytesseract OCR for images with table structure

痞子三分冷 提交于 2020-08-25 04:16:38
问题 I use a code to locate text boxes and create a rectangle around them. This allows me to rebuild the grid around the table structure in the image. However, even if the text box detection works very well, if I try to define the characters present in each rectangle, pytesseract does not identify them well and does not allow to find the original text. Here is my Python code : import os import cv2 import imutils import argparse import numpy as np import pytesseract # This only works if there's