Questions tagged [encoder]

Encoder is a software program, device or algorithm that converts information from one format or code to another, for the purposes of standardization, speed, secrecy, security or compressions.

612 questions
0
votes
0 answers

Error using Sklearn in a for loop

I am running Python 3, and when I attempt to run this code: from sklearn.preprocessing import LabelEncoder cv=train.dtypes.loc[train.dtypes=='object'].index print (cv) le=LabelEncoder() for i in cv: train[i]=le.fit_transform(train[i]) …
Negative Correlation
  • 813
  • 1
  • 11
  • 26
0
votes
1 answer

android video apply filter

I have a video created with MediaCodec from camera preview. Now I want to edit that video, to apply a filter (white/black) and save to another file. I read about DecodeEditEncodeTest.java from CTS tests and tried to adapt to my problem, but I…
Siv
  • 193
  • 2
  • 16
0
votes
2 answers

How to reshape a 1-d array into a an array of shape (1,4,5)?

I have these vectors : a = [1,2,3,4] b = [1,2,3,5] and I could like to have this at the end : A = [ [1,0,0,0,0] [0,1,0,0,0] [0,0,1,0,0] [0,0,0,1,0] ] B = [ [1,0,0,0,0] [0,1,0,0,0] [0,0,1,0,0] [0,0,0,0,1] ] I…
Dirty_Fox
  • 1,611
  • 4
  • 20
  • 24
0
votes
1 answer

How to implement a generic encoder?

I want to implement a generic encoder because I have a small project on Spark 1.6 and when I migrate it to the spark 2.0 its giving me the warning and error of Unable to find encoder for type stored in a Dataset. Primitive types (Int, String,…
Shivansh
  • 3,454
  • 23
  • 46
0
votes
1 answer

How can I use gyro or encoders for robot moving in straight line?

I've recently succeeded in building my Autonomous robot with DC motors, and it works well. However, it doesn't move in a straight line yet, when it should. I'm now studying which method should I implement to make the robot go straight. I pretty much…
user6414434
0
votes
1 answer

How to save an image instead of making a copy?

I've been tasked with reducing the quality of pictures on a network drive's file/folder system. Code: Dim bmp1 As New Bitmap("U:\Image1.jpg") Dim jpgEncoder As ImageCodecInfo = GetEncoder(ImageFormat.Jpeg) Dim myEncoder As…
0
votes
1 answer

Android AAC-HE encoder initialization fails with 8khz sampling rate

I am trying to initialize AAC encoder with the following parameters aac-profile=5, mime=audio/mp4a-latm, bitrate=12000, channel-count=1, sample-rate=8000 But the codec initialization fails with the following error: 06-14 19:17:58.009 6194-6450/?…
user2067340
  • 231
  • 1
  • 2
  • 8
0
votes
0 answers

Encoder Debounce VHDL

For practice, I attempted to make a VHDL code to run Rotary encoder hardware. It was full with debounce, quadrature decoder and an up/down counter codes. Unfortunately, when running simulation with a testbench, my results were disappointing so I…
0
votes
1 answer

Encoder and Decoder

Other way to encode byte[] to String and decode String to byte[] without using Base64. Because when I encode a byte[] to String and then I compress the String using LZW. I can't decode it back to byte[] using Base64. Is there an encoder or decoder…
Satria Winarah
  • 55
  • 1
  • 10
0
votes
1 answer

How to implement a 32 bits counter based on 16 bits FTM counter?

Problem: The micro controller i am using only supports returning 16 bits encoder values, but for my application, i need to 32 bits. Question: Is there anyway to implement/have my own 32 bits counter to recount ticks based on returned 16 bits counter…
nya
  • 33
  • 1
  • 1
  • 4
0
votes
1 answer

Live stream encoder in .NET RTSP, RTMP

I am wondering if anyone knows of any live stream encoders that we can our in our .NET application. We are currently using StreamCoders but they do not have all the functionality we need e.g. Closed Captions. The software should be able to encoder…
Ben Clarke
  • 1,051
  • 4
  • 21
  • 47
0
votes
1 answer

Azure server not letting me use a NuGet package

I have a website hosted by Azure that includes a Web API which I'm using to develop an android app. I'm trying to upload a media file to the server where it's encoded by a media encoder and saved to a path. The encoder library is called "Media…
Ahmed Mujtaba
  • 2,110
  • 5
  • 36
  • 67
0
votes
0 answers

scripting.encoder on Server 2008R2

I've recently had to move build servers as we are advancing our codebase from .NET 4 to 4.6.1. The problem I'm having right now is that we use a lot of Classic ASP pages that we obfuscate with the scrrun.dll scripting.encoder object. Our old build…
peg_leg
  • 73
  • 1
  • 7
0
votes
0 answers

Base64 analogs for transfer image from server

I need to reduce data amount that is sending from server to client. I have an image that dynamically changing every 5 seconds. Than this image is encoding by Base64, method encodeBase64String(byte[] image) and in such condition is passing to…
Dante
  • 279
  • 1
  • 19
0
votes
3 answers

I need two functions which encrypts some data in php and decrypts it in java "correctly"

I need to get two functions. I want to transfer data from my website to my server in xml format. Now on my server, I want to make a function that encrypts the data and place it in an xml, and another function in java to decrypt it. Please tell me if…
DJ'
  • 1,760
  • 1
  • 13
  • 26