Use this tag for physically moving systems. For example robots, or electronic or pneumatic actuators.
Questions tagged [motion]
584 questions
2
votes
1 answer
Getting mouse relative motion even at the border of screen
Purpose:
I want to have the relative movement of my mouse even when she is on the border of my screen (so I can't compute the vector between 2 moment).
Application:
I want to make a helper for mortar shooting in a game called 'squad', you control…

Ratchet
- 21
- 2
2
votes
3 answers
How to count time while phone is shaking in swift?
How to count time while phone is shaking in swift?
want to get time measurement how long phone is shaking.
var timer = Timer()
var timeLeft = 0
override func motionBegan(_ motion: UIEvent.EventSubtype, with event: UIEvent?) {
if(motion ==…

Mika Dior
- 53
- 8
2
votes
1 answer
Motionevent.ACTION_UP firing constantly?
In my program I am having it draw a rectangle while the finger is down and moving than erase it after the finger is up. this is to show the user the range of values he/she is using as a "guess" to find the root. however the rectangle never shows up!…

ajax09
- 21
- 2
2
votes
0 answers
Velocity vector (optical flow etc.) to RGB color conversion
I have computed an optical flow and I wish to convert this to images.
Following the tutorials of opencv2:
mag, ang = cv2.cartToPolar(flow[...,0], flow[...,1])
hsv = np.zeros_like(cv2.imread(img_path))
hsv[...,1] = 255
hsv[...,0] =…

dusa
- 840
- 3
- 14
- 31
2
votes
0 answers
JavaFx Webview with Motion
Is it possible, to view the video which motion streams vie JavaFx Webview and WebEngine?
I have a code which shows me like every website i want, but when i try to open the stream from motion nothing happens
The app code:
import…

Herbert Schmidt
- 21
- 2
2
votes
1 answer
How to parse a bvh file to a skeleton model made in OpenGL?
I'm trying to parse the bvh data to my skeleton I already developed with OpenGL. There is one thing regarding data parsing I got curious about though.
Bvh data has two parts, which are HIERARCHY and MOTION. HIERARCHY specifies the tree structure and…

Peter
- 460
- 6
- 23
2
votes
2 answers
AS3 webcam shape recognition
I'm making a dissertation on webcam motion tracking in actionscript. I am looking at different possibilities on how to do this and have found a few already.
There is, however, one method I would like to try out, but i'm kind of stuck. I'm trying to…

Michiel Standaert
- 4,096
- 7
- 27
- 49
2
votes
0 answers
Is it possible to get motion vector from ffmpeg using cuvid decoder (h264_cuvid)
I wonder if is it possible to get motion vector data from the decoding of an h264 stream with ffmpeg using the h264_cuvid decoder. With the standard "h264" decoder, I can get them in the sidedata of the avframe (passing the av_dict_set(&opts,…

user8957959
- 21
- 2
2
votes
0 answers
SWIFT: What should be used to compute device's rotation - gravity or rotationRate?
I have a problem with measuring a rotation with iPhone - while in move, device seems to be "fooled" and doesn't show exact deviation. I'm using the following code to rotate the compass-like wheel:
if manager.isDeviceMotionAvailable…

Adrian Krzyżowski
- 167
- 8
2
votes
1 answer
iPhone Motion - EXC BAD ACCESS
I'm beginning coding with the DeviceMotion class. After following Apple's documenation, i have the following:
- (void)viewDidLoad {
[super viewDidLoad];
myMM = [[CMMotionManager alloc] init];
myMM.deviceMotionUpdateInterval = 1.0/30.0;
…

Rubber Duck
- 2,997
- 2
- 20
- 25
2
votes
0 answers
What is the appropriate motion sensor for movement?
I want to find a wireless motion sensor for movement which should be sensitive for the up, down, left and right movement. I have found some like IMU sensor. Could you please guys tell me if you know a better one which should be wireless sensor and…

Martin
- 131
- 1
- 8
2
votes
2 answers
Getting RPi-Cam-Web-Interface running
I followed the tutorial on this site, to get my RaspberryPi NoIR-Cam running. After starting it i am retrieving the following error:
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
sh: 1:…

Chris311
- 33
- 2
- 6
2
votes
0 answers
Detect jumping with accelerometer (use magnitude to count) in android
I would like to detect jump in android, after studied:
https://developer.android.com/guide/topics/sensors/sensors_motion.html
the magnitude seems to be a better factor of detect jump instead of X/Y/Z acceleration, the idea is whenever magnitude…

user782104
- 13,233
- 55
- 172
- 312
2
votes
1 answer
Detect Motion on axis in android
HI,
I am willing to implement a logic in which i need to know about the amount of motion made by phone on x y or z axis,
using accelerometer i can only find acceleration on these axis, even if i try calculating the relative x coordinate value based…

Abhinava
- 1,030
- 9
- 19
2
votes
0 answers
How to implement material design Illustrations motions like ones in google examples
I working on android application and i follow the material design guidelines founded here: google material design.
One of the best user experience points is motions > Illustrations founded
here.
I searched here in SO and in the web for any tutorial…

Marzouk
- 2,650
- 3
- 25
- 56